1.0.0 • Published 1 year ago

@pajarrahmansyah/remove-array-index-js v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@pajarrahmansyah/remove-array-index-js

npm (scoped) npm bundle size (minified)

Javascript removing by index or value from array

Install

$ npm install @pajarrahmansyah/remove-array-index-js

Usage

const remove = require("@pajarrahmansyah/remove-array-index-js");
const array = ["haha", "hihi", "123"];
remove.value(array, "hihi");
//=> "["haha", "123"]"

remove.value(1337);
//=> Uncaught TypeError: value wants a array!
//    at value (<anonymous>:2:41)
//    at <anonymous>:1:1