1 /** Used for built-in method references. */
2 var arrayProto = Array.prototype;
4 /* Built-in method references for those with the same name as other `lodash` methods. */
5 var nativeJoin = arrayProto.join;
8 * Converts all elements in `array` into a string separated by `separator`.
14 * @param {Array} array The array to convert.
15 * @param {string} [separator=','] The element separator.
16 * @returns {string} Returns the joined string.
19 * _.join(['a', 'b', 'c'], '~');
22 function join(array, separator) {
23 return array == null ? '' : nativeJoin.call(array, separator);
26 module.exports = join;