New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@arr/includes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arr/includes

A tiny, faster alternative to native Array.prototype.includes

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
6
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

@arr/includes

A tiny, faster alternative to native Array.prototype.includes

Install

$ npm install --save @arr/includes

Usage

import includes from '@arr/includes';

const foo = ['a', 'b', 'c', 'd'];

includes(foo, 'c');
//=> true
includes(foo, 'g');
//=> false
includes(foo, 'b', 2);
//=> false

API

includes(arr, item[, fromIndex])

arr

Type: Array
The array to iterate upon.

item

Type: Mixed
The element to search for.

fromIndex

Type: Integer
Default: 0
The position in the arr at which to begin searching.

License

MIT © Luke Edwards

Keywords

arr

FAQs

Package last updated on 23 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts