saara

Adds an element to an array to the second place. Also supports adding to second to last place. Does the modification immutably.


Keywords
array, immutable, saara, aalto
License
ISC
Install
npm install saara@0.1.0

Documentation

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.

Future work

  • Add UMK-mode, which adds an element into the first, second and third indices.
  • Support Immutable JS
  • Clojure it