Skip to content

yjhuoh/unpop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

polyfills unpop method to Array objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published