@pajarrahmansyah/remove-array-index-js

1.0.0 • Public • Published

@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

Package Sidebar

Install

npm i @pajarrahmansyah/remove-array-index-js

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.94 kB

Total Files

4

Last publish

Collaborators

  • pajarrahmansyah