Skip to content

ahdinosaur/repeat-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repeat-array

repeats the contents of an Array n times.

how to install

npm i --save repeat-array

how to use

var repeat = require('repeat-array');

var arr = [1, 2, 3];

console.log(repeat(arr, 3));
// [1, 2, 3, 1, 2, 3, 1, 2, 3]

About

repeats the contents of an Array n times.

Resources

Stars

Watchers

Forks

Packages

No packages published