@kingjs/linq.repeat

1.0.6 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @kingjs/linq.repeat

Weekly Downloads

9

Version

1.0.6

License

MIT

Unpacked Size

2.94 kB

Total Files

4

Last publish

Collaborators

  • kingces95