SHARE
TWEET

Untitled

a guest Jun 12th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top