prototype.concat source

_.prototype.concat([values])

Creates a new array joining a wrapped array with any additional arrays and/or values.

Arguments

  1. [values] (...*)

    The values to concatenate.

Returns (Array)

Returns the new concatenated array.

Example

var array = [1];
var wrapped = _(array).concat(2, [3], [[4]]);

console.log(wrapped.value());
// => [1, 2, 3, [4]]

console.log(array);
// => [1]