Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Make this work
  2. // duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
  3. //
  4. //
  5. // from https://github.com/h5bp/Front-end-Developer-Interview-Questions#contributors
  6. //
  7. //
  8. // is this good solution?
  9.  
  10. function duplicate(arr) {
  11.     return arr.concat(arr);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement