We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Gives values that cycle through array. 🏃 📼 📦 🌔
array.cycle(x, n); // x: an array // n: number of values
const array = require('extra-array'); var x = [1, 2, 3]; array.cycle(x, 2); // [1, 2] array.cycle(x, 4); // [1, 2, 3, 1] array.cycle(x, 6); // [1, 2, 3, 1, 2, 3]