Skip to content

interview-algorithm/helix-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]