Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // JavaScript example
- var array = [1];
- var example = array.concat(array, 2, 3, [4], [[5]]);
- console.log(example);
- // => [1, 2, 3, 4, [5]]
- // Lodash example
- var array = [1];
- var example = _.concat(array, 2, 3, [4], [[5]]);
- console.log(example);
- // => [1, 2, 3, 4, [5]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement