Underscore.js Arrays: Rest
HTML
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<a target="parent" href="http://underscorejs.org/#rest">Learn More</a>
JavaScript
var testRest = _.rest([5, 4, 3, 2, 1], 2);
var testRestAfterSecond = _.rest([5, 4, 3, 2, 1],[2]);
console.log(testRest)
//[4, 3, 2, 1]
// All but the first one
console.log(testRestAfterSecond);
//[3, 2, 1]
//All but the first two