insert-at-index
0.0.2 • Public • Published [...🎯...] insert-at-index
insert a value, or an array, into an array at an index
📦 usage
yarn add insert-at-index
npm i insert-at-index --save
const insertAt = require('insert-at-index')
📘 examples
const list = [0, 1, 2, 3, 4]
const eh = ['canada', 'moose']
insertAt(list, 2, eh)
console.log(list)
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.0.2 | 4 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
0.0.2 | 4 | |
Package Sidebar
Install
Weekly Downloads