0.0.1 • Published 1 year ago

@leonetti/in-array-ts v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

inArray

Returns true if value is in an array, like indexOf but fast and in TypeScript

Install

npm install @leonetti/in-array-ts

Usage

import {inArray} from '@leonetti/in-array-ts';

console.log(inArray(['a', 'b', 'c'], 'a'));
//=> true

console.log(inArray(null, 'a'));
//=> false
0.0.1

1 year ago