saara
v0.1.0
Published
Adds an element to an array to the second place. Also supports adding to second to last place. Does the modification immutably.
Downloads
4
Readme
saara
A module that adds an element at the second index in an ordered array. Works immutably. JS implementation is currently available. Supports also adding an element to the second-to-last index.
Usage
Insert item into second index of an array
var newArray = saaraize(item, array)
Insert item into second-to-last index of an array
var newArray = saaraVisionize(item, array)
Future work
- Add UMK-mode, which adds an element into the first, second and third indices.
- Support Immutable JS
- Just Clojure It