mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Remove semicolons.
This commit is contained in:
18
concat.js
18
concat.js
@@ -1,6 +1,6 @@
|
||||
import arrayPush from './.internal/arrayPush.js';
|
||||
import baseFlatten from './.internal/baseFlatten.js';
|
||||
import copyArray from './.internal/copyArray.js';
|
||||
import arrayPush from './.internal/arrayPush.js'
|
||||
import baseFlatten from './.internal/baseFlatten.js'
|
||||
import copyArray from './.internal/copyArray.js'
|
||||
|
||||
/**
|
||||
* Creates a new array concatenating `array` with any additional arrays
|
||||
@@ -13,17 +13,17 @@ import copyArray from './.internal/copyArray.js';
|
||||
* @returns {Array} Returns the new concatenated array.
|
||||
* @example
|
||||
*
|
||||
* const array = [1];
|
||||
* const other = concat(array, 2, [3], [[4]]);
|
||||
* const array = [1]
|
||||
* const other = concat(array, 2, [3], [[4]])
|
||||
*
|
||||
* console.log(other);
|
||||
* console.log(other)
|
||||
* // => [1, 2, 3, [4]]
|
||||
*
|
||||
* console.log(array);
|
||||
* console.log(array)
|
||||
* // => [1]
|
||||
*/
|
||||
function concat(array, ...values) {
|
||||
return arrayPush(Array.isArray(array) ? copyArray(array) : [array], baseFlatten(values, 1));
|
||||
return arrayPush(Array.isArray(array) ? copyArray(array) : [array], baseFlatten(values, 1))
|
||||
}
|
||||
|
||||
export default concat;
|
||||
export default concat
|
||||
|
||||
Reference in New Issue
Block a user