✏️ 编辑:join.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/join.js
大小:693 B · 修改:2022-11-21 20:09:50 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
/** 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;
💾 保存
取消
保存为 UTF-8,换行统一为 LF