summaryrefslogtreecommitdiff
path: root/node_modules/array-find-index
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/array-find-index')
-rw-r--r--node_modules/array-find-index/index.js25
-rw-r--r--node_modules/array-find-index/license21
-rw-r--r--node_modules/array-find-index/package.json35
-rw-r--r--node_modules/array-find-index/readme.md30
4 files changed, 0 insertions, 111 deletions
diff --git a/node_modules/array-find-index/index.js b/node_modules/array-find-index/index.js
deleted file mode 100644
index e2dcd9a..0000000
--- a/node_modules/array-find-index/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-module.exports = function (arr, predicate, ctx) {
- if (typeof Array.prototype.findIndex === 'function') {
- return arr.findIndex(predicate, ctx);
- }
-
- if (typeof predicate !== 'function') {
- throw new TypeError('predicate must be a function');
- }
-
- var list = Object(arr);
- var len = list.length;
-
- if (len === 0) {
- return -1;
- }
-
- for (var i = 0; i < len; i++) {
- if (predicate.call(ctx, list[i], i, list)) {
- return i;
- }
- }
-
- return -1;
-};
diff --git a/node_modules/array-find-index/license b/node_modules/array-find-index/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/array-find-index/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/array-find-index/package.json b/node_modules/array-find-index/package.json
deleted file mode 100644
index ee2e62d..0000000
--- a/node_modules/array-find-index/package.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "array-find-index",
- "version": "1.0.2",
- "description": "ES2015 `Array#findIndex()` ponyfill",
- "license": "MIT",
- "repository": "sindresorhus/array-find-index",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "es2015",
- "ponyfill",
- "polyfill",
- "shim",
- "find",
- "index",
- "findindex",
- "array"
- ],
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- }
-}
diff --git a/node_modules/array-find-index/readme.md b/node_modules/array-find-index/readme.md
deleted file mode 100644
index 3166341..0000000
--- a/node_modules/array-find-index/readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# array-find-index [![Build Status](https://travis-ci.org/sindresorhus/array-find-index.svg?branch=master)](https://travis-ci.org/sindresorhus/array-find-index)
-
-> ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) [ponyfill](https://ponyfill.com)
-
-
-## Install
-
-```
-$ npm install --save array-find-index
-```
-
-
-## Usage
-
-```js
-const arrayFindIndex = require('array-find-index');
-
-arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
-//=> 1
-```
-
-
-## API
-
-Same as `Array#findIndex()`, but with the input array as the first argument.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)