unpop

1.0.1 • Public • Published

unpopping

unpop

Annoyed by inconsistent Javascript nomenclature?

  • removing an element from the head of an array? shift
  • adding an element to the head of an array? unshift
  • removing an element from the tail of an array? pop
  • adding an element to the tail of an array? unpop - obviously!

Installation

npm install unpop

Examples

 
require('unpop');
const myArray = [1, 2, 3];
myArray.unpop(4);
console.log(myArray); // [1, 2, 3, 4]

Readme

Keywords

Package Sidebar

Install

npm i unpop

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • yjhuoh