1.0.0 • Published 2 years ago

pushat v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

name

pushat


discription

this package help you to add an element into an array at a certain index.


links--For--Quick--Navigating

-- download for downloading, -- importing guide for importing, -- sytanx for sythax, -- usage example for usage example -- conclusion for conclusion


downloadPackage

npm i pushat


importing

const pushat = require('pushat');

synthax

pushat(array, index, element);


usagExample

let arr = [1, 2, 3, 4, 6, 7, 8, 9, 10];
arr = pushat(arr, 4, 5);
//arr is our array
//4 is the index where you want to add element
//5 element to be added to array

conclusion

thank you for using also visiting our package, we will like your response if possible give us your feedback through Email: pacifiquemurangwa001@gmail.com