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]
 

Readme

Keywords

Package Sidebar

Install

npm i helix-array

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • yinyongcom666