Advertisement
Guest User

Untitled

a guest
Jun 12th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. // JavaScript example
  2. var array = [1];
  3. var example = array.concat(array, 2, 3, [4], [[5]]);
  4.  
  5. console.log(example);
  6. // => [1, 2, 3, 4, [5]]
  7.  
  8. // Lodash example
  9. var array = [1];
  10. var example = _.concat(array, 2, 3, [4], [[5]]);
  11.  
  12. console.log(example);
  13. // => [1, 2, 3, 4, [5]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement