Socket
Socket
Sign inDemoInstall

@1000ch/array-find

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1000ch/array-find - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

index.d.ts

4

index.js
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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc