insert-at-index

0.0.2 • Public • Published

[...🎯...] insert-at-index

NPM version MIT License fliphub flipfam

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

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    29
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    29

Package Sidebar

Install

npm i insert-at-index

Weekly Downloads

3

Version

0.0.2

License

none

Last publish

Collaborators

  • aretecode