Urara-Blog/node_modules/.pnpm-store/v3/files/6c/2cec04c6b82060ab701c4c78acb94791027c83ad09af2056fad0c60c80e042694c5126a31e653bc05191c8313a879a136bd3532b80da3ddcba8e3b6921fed7
2022-08-14 01:14:53 +08:00

26 lines
693 B
Text

/** 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;