Share your code. Components are building blocks, you are the architect.

utils/repeat
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns a fixed list of size `n` containing a specified identical value.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/repeat in your project
npm i @bit/bit.ramda.utils.repeat
Copied

repeat (value:*, n:Number) : Array

Returns a fixed list of size n containing a specified identical value.

Example

R.repeat('hi', 5); //=> ['hi', 'hi', 'hi', 'hi', 'hi']

     var obj = {};
     var repeatedObjs = R.repeat(obj, 5); //=> [{}, {}, {}, {}, {}]
     repeatedObjs[0] === repeatedObjs[1]; //=> true

Arguments

value: *

The value to repeat.

n: Number

The desired size of the output list.

Returns

Array

A new array containing `n` `value`s.