Socket
Socket
Sign inDemoInstall

array-find-index

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

8

index.js

@@ -7,2 +7,6 @@ 'use strict';

if (typeof predicate !== 'function') {
throw new TypeError('predicate must be a function');
}
var list = Object(arr);

@@ -15,6 +19,2 @@ var len = list.length;

if (typeof predicate !== 'function') {
throw new TypeError('predicate must be a function');
}
for (var i = 0; i < len; i++) {

@@ -21,0 +21,0 @@ if (predicate.call(ctx, list[i], i, list)) {

{
"name": "array-find-index",
"version": "1.0.0",
"version": "1.0.1",
"description": "ES2015 `Array#findIndex()` ponyfill",

@@ -5,0 +5,0 @@ "license": "MIT",

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