-
Notifications
You must be signed in to change notification settings - Fork 11
skip(count)
suckgamoni edited this page May 15, 2013
·
1 revision
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
Parameters
count
Type: number
The number of elements to skip before returning the remaining elements.
Return Value
An iterable object that contains the elements that occur after the specified index in the input sequence.
var grades = [ 59, 82, 70, 56, 92, 98, 85 ];
var lowerGrades = from(grades).orderByDesc().skip(3);
console.log("All grades except the top three are:");
lowerGrades.each("console.log($)");
/*
This code produces the following output:
All grades except the top three are:
82
70
59
56
*/