fdsfd
This commit is contained in:
parent
628618df89
commit
e031240dff
3749 changed files with 1120848 additions and 1 deletions
26
node_modules/lodash/join.js
generated
vendored
Normal file
26
node_modules/lodash/join.js
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
/** Used for built-in method references. */
|
||||
var arrayProto = Array.prototype;
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeJoin = arrayProto.join;
|
||||
|
||||
/**
|
||||
* Converts all elements in `array` into a string separated by `separator`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to convert.
|
||||
* @param {string} [separator=','] The element separator.
|
||||
* @returns {string} Returns the joined string.
|
||||
* @example
|
||||
*
|
||||
* _.join(['a', 'b', 'c'], '~');
|
||||
* // => 'a~b~c'
|
||||
*/
|
||||
function join(array, separator) {
|
||||
return array == null ? '' : nativeJoin.call(array, separator);
|
||||
}
|
||||
|
||||
module.exports = join;
|
Loading…
Add table
Add a link
Reference in a new issue