JSPM

insert-at-index

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q30771F

insert a value, or an array, into an array at an index

Package Exports

  • insert-at-index

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (insert-at-index) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

[...🎯...] 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)