prototypes
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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'); |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25716
13
680
250