@kingjs/linq.skip

1.0.8 • Public • Published

@kingjs/linq.skip

Generates a sequence identical to another sequence after bypassing a specified number of elements.

Usage

Skip the first 2 numbers in -1, -1, 0, 1, 2 like this:

var skip = require('@kingjs/linq.skip');
var sequence = require('@kingjs/enumerable.create');
var toArray = require('@kingjs/linq.to-array');

var result = skip.call(sequence(-2, -1, 0, 1, 2), 2);

toArray.call(result);

result:

[0, 1, 2]

API

declare function skip(
  this: Enumerable,
  count: number
): Enumerable

Interfaces

Parameters

  • this: The sequence.
  • count: The number of elements to skip.

Return Value

A sequence where the first count elements have been skipped over.

Install

With npm installed, run

$ npm install @kingjs/linq.skip

Acknowledgments

Like Element.Skip.

License

MIT

Analytics

Readme

Keywords

none

Package Sidebar

Install

npm i @kingjs/linq.skip

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

3.25 kB

Total Files

4

Last publish

Collaborators

  • kingces95