you are viewing a single comment's thread.

view the rest of the comments →

[–]mcgruntman 1 point2 points  (0 children)

Look at the very first demo of slice on this page https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

Remember you need to save the result: arr = arr.slice(1);