@kingjs/linq.repeat
v1.0.6
Published
Generate a sequence of a repeated value.
Readme
@kingjs/linq.range
Generate a sequence of a repeated value.
Usage
Repeat 0 3 times like this:
var repeat = require('@kingjs/linq.repeat');
var toArray = require('@kingjs/linq.to-array');
toArray.call(repeat(0, 3));result:
[0, 0, 0]API
function repeat(
value: any,
count: number
): EnumerableInterfaces
Enumerable: See @kingjs/enumerable.define.
Parameters
value: The value to repeat.count: The number of repetitions.
Return Value
A sequence of count repetitions of value.
Install
With npm installed, run
$ npm install @kingjs/link.repeatAcknowledgments
Like Enumerable.Repeat
License
MIT
