Skip to content
Yasser Moradi edited this page Aug 26, 2015 · 2 revisions

Description:

The Skip method returns all of the items that the Take method would not return when used with the same argument. In the case of Skip, a number of items from the start of the source sequence are ignored and the remaining items are returned. In the following example, the first five elements of the string array are skipped and the remaining items are included in the results.

Samples:

let fruits = ['Apple', 'Banana', 'Cherry', 'Damson', 'Elderberry', 'Grape', 'Kiwi', 'Lemon', 'Melon', 'Orange'];
let skipPartitioned = fruits.asEnumerable().skip(5).toArray();
console.log('*** The first five elements of the strings array are skipped and the remaining items extacted ...');
for (let index = 0; index < skipPartitioned.length; index++)
  console.log(skipPartitioned[index]);
Clone this wiki locally