JSPM

in-array

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 224
  • Score
    100M100P100Q74794F

Return true if a value exists in an array. Faster than using indexOf.

Package Exports

  • in-array

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (in-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

in-array NPM version

Return true if a value exists in an array. Faster than using indexOf.

Install

Install with npm:

npm i in-array --save-dev

Usage

var inArray = require('in-array');
console.log(inArray(['a', 'b', 'c'], 'a'));
//=> true

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

console.log(inArray(null));
//=> false

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on June 26, 2014.