Socket
Socket
Sign inDemoInstall

prototypes

Package Overview
Dependencies
1
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

lib/array.js

1

index.js

@@ -11,2 +11,3 @@ 'use strict';

require('./lib/string.js');
require('./lib/array.js');
var mathLib = require('./lib/math.js');

@@ -13,0 +14,0 @@ var objectLib = require('./lib/object.js');

2

package.json
{
"name": "prototypes",
"version": "0.2.1",
"version": "0.2.2",
"description": "Some common prototypes for node.js: string.startsWith(), object.countProperties() and more. Functions are added using Object.defineProperty() to avoid polluting new objects.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/prototypes",

@@ -167,2 +167,13 @@ [![Build Status](https://secure.travis-ci.org/alexfernandez/prototypes.png)](http://travis-ci.org/alexfernandez/prototypes)

## Array Prototypes
The following array prototypes are provided.
### array.contains(element)
Check if the array contains the given element. Example:
['a', 'b'].contains('a');
\=> true
## Math-related Functions

@@ -169,0 +180,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc