企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## concat + [link](./concat "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L5574 "View in source.") + [npm](https://www.npmjs.com/package/lodash.concat "See the npm package.") ``` _.concat(array, [values]) ``` 创建一个用任何数组 或 值连接的新数组。 ### 参数 1. array (Array) 需要被连接的数组 2. [values] (...*) 需要被连接的值的队列 ### 返回值 (Array) 返回连接后的新数组 ### 示例 ``` var array = [1]; var other = _.concat(array, 2, [3], [[4]]); console.log(other); // => [1, 2, 3, [4]] console.log(array); // => [1] ```