@1000ch/array-find
Advanced tools
Comparing version 1.1.1 to 1.2.0
module.exports = function (array, predicate, context) { | ||
if (!Array.isArray(array)) { | ||
throw new TypeError('array is not a Array'); | ||
} | ||
if (typeof predicate !== 'function') { | ||
@@ -7,0 +3,0 @@ throw new TypeError('predicate is not a Function'); |
{ | ||
"name": "@1000ch/array-find", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Polyfill for Array.prototype.find", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,3 +12,3 @@ # array-find [![Build Status](https://travis-ci.org/1000ch/array-find.svg?branch=master)](https://travis-ci.org/1000ch/array-find) | ||
```javascript | ||
var find = require('array-find'); | ||
var find = require('@1000ch/array-find'); | ||
@@ -32,3 +32,3 @@ function isPrimary(item, index, array) { | ||
```javascript | ||
require('array-find'); | ||
require('@1000ch/array-find/shim'); | ||
@@ -35,0 +35,0 @@ var array = [4, 5, 8, 10]; |
Sorry, the diff of this file is not supported yet
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
6709
10
168