New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

array.prototype.unpop

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array.prototype.unpop

Array.prototype.unpop()

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
10
-47.37%
Maintainers
1
Weekly downloads
 
Created
Source

Array.prototype.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!

This is a better version of unpop with TS definitions.

Installation

npm install array.prototype.unpop

Examples


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

Keywords

unpop

FAQs

Package last updated on 04 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts