helix-array

Helix an array

Usage no npm install needed!

<script type="module">
  import helixArray from 'https://cdn.skypack.dev/helix-array';
</script>

README

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]