💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## join + [link](./join "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L6173 "View in source.") + [npm](https://www.npmjs.com/package/lodash.join "See the npm package.") ``` _.join(array, [separator=',']) ``` 将数组中的所有元素转换为由 `separator` 分隔的字符串。 ### 参数 1. array (Array) 需要转换的数组 2. [separator=','] (string) 分隔符 ### 返回值 (string) 返回连接好的字符串 ### 示例 ``` _.join(['a', 'b', 'c'], '~'); // => 'a~b~c' ```