New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

array-prototype-functions

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-prototype-functions - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "array-prototype-functions",
"version": "1.0.1",
"version": "1.0.2",
"description": "Array prototype augmentation for easier arithmetics",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,2 +9,18 @@ # Array prototype functions

## Usage
The usage is dead simple. Just import the package and you're done:
```
// ES6 module
import 'array-prototype-functions'
// node.js
require('array-prototype-functions')
```
Once the file is executed the `Array.prototype` is automatically augmented.
Please note that if the functions are already present they will not be overriden! This means that if at any point in time the `Array.prototype` will gain functions like `head`, `tail` or any other that is provided by this library they will take precedense over the ones from this library.
## Why augmenting the `Array.prototype`?

@@ -11,0 +27,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc