JavaScript shift() vs. slice(1)
comgyan.blogspot.co.id