InsertAt is a very simple functional method for adding items at a specific point in an array. This was something I threw together for some of my work on SPIN.com and thought I'd share it.
The function is easy enough to use.
let a = 'figs' 'ash' 'oreo';let a2 = ;console; // ['figs', 'ash', 'mooch', 'oreo']
To run tests, make sure you run
from within the directory to install development dependencies. Then run the following: