@extra-array/repeat.min
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Repeats an array given times. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: repeat, cycle, rotate, reverse.

This is part of package extra-array.

This is browserified, minified version of @extra-array/repeat.
It is exported as global variable array_repeat.
CDN: unpkg, jsDelivr.


array.repeat(x, [n]);
// x: an array
// n: times (1)
const array = require("extra-array");

var x = [1, 2];
array.repeat(x, 2);
// [ 1, 2, 1, 2 ]

array.repeat(x, 3);
// [ 1, 2, 1, 2, 1, 2 ]


References

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/repeat.min

Weekly Downloads

0

Version

2.10.19

License

MIT

Unpacked Size

5.06 kB

Total Files

8

Last publish

Collaborators

  • wolfram77