How can I create a new array that contains all elements numbered nth to (n+k)th from an old array?
How can I create a new array that contains all elements numbered nth to (n+k)th from an old array?
Array.prototype.take = function (count) {
return this.slice(0, count);
}