@kingjs/linq.range

Generate a range of numbers.

Stats

StarsIssuesVersionUpdatedCreatedSize
@kingjs/linq.range
1.0.113 years ago3 years agoMinified + gzip package size for @kingjs/linq.range in KB

Readme

@kingjs/linq.range

Generate a range of numbers.

Usage

Generate a range of 3 numbers starting at 1.

var range = require('@kingjs/linq.range');
var toArray = require('@kingjs/linq.to-array');

toArray.call(range(1, 3));

result:

[1, 2, 3]

API

function range(
  start: number, 
  count: number
): Enumerable

Interfaces

Parameters

  • start: Number at which to start sequence.
  • count: Values in sequence.

Return Value

A sequence of count incrementing numbers starting at start.

Install

With npm installed, run

$ npm install @kingjs/link.range

Acknowledgments

Like Enumerable.Range

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.