npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

helix-array

1.0.1 • Public • Published

helix-array

NPM version Downloads Build Status Dependency status Dev Dependency status

Output an array in helix order.

Helix

usage

var helixArray = require('helix-array').helixArray;
 
const arr = [0, 1, 2, 3, 4, 5];
 
helixArray(arr, 2, 3)// [0, 1, 3, 5, 4, 2]
helixArray(arr, 3, 2)// [0, 1, 2, 5, 4, 3]
 

Keywords

install

npm i helix-array

Downloadsweekly downloads

10

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability