Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

skip(count)

suckgamoni edited this page · 1 revision

Bypasses a specified number of elements in a sequence and then returns the remaining elements.

Syntax

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.


Example

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
*/
Something went wrong with that request. Please try again.