@kingjs/linq.skip

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@kingjs/linq.skip
081.0.84 years ago4 years agoMinified + gzip package size for @kingjs/linq.skip in KB

Readme

@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: ```js 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: ```js 0, 1, 2 ```

API

```ts 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.aspx).

License

MIT Analytics