@kingjs/linq.skip

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

Stats

StarsIssuesVersionUpdatedCreatedSize
@kingjs/linq.skip
1.0.83 years ago3 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:

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.