JSPM

helix-array

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q30934F
  • License MIT

Helix an array

Package Exports

  • helix-array

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (helix-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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]