Skip to content

Utility function for interleaving a JavaScript Array

License

Notifications You must be signed in to change notification settings

develleoper/leaf-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

leaf-array

Utility function for interleaving a JavaScript Array

Usage

let leafArray = require('leaf-array');

let primaryArray = ['a', 'b', 'c'];
let interleafValue = 'd';
let interleavedArray = leafArray( primaryArray, interleafValue );

// ['a', 'd', 'b', 'd', 'c']

TODO

  • Register with npm
  • Reimplement using es2016 with support for legacy browsers
  • Support alternate package distribution systems
  • Consider extending support for supplying a secondaryArray

About

Utility function for interleaving a JavaScript Array

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published