@kingjs/linq.repeat

Generate a sequence of a repeated value.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
03Jun 12, 2021Jul 20, 2018Minified + gzip package size for @kingjs/linq.repeat in KB

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
): Enumerable

Interfaces

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.repeat

Acknowledgments

Like Enumerable.Repeat

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.