JavaScript shift() vs. slice(1) | Dark Hacker News