Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -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