Licence
Unlicense
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Better Pop
Better Pop is a better way to pop elements from arrays in Javascript.
Installation
Use the package manager npm to install better-pop.
npm install better-pop
Usage
const betterPop = require('better-pop');
let arr = ["there", "are", "elements"];
arr = betterPop(arr);
console.log(arr); // ["there", "are"]
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.