JSPM

array-has

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q43904F
  • License MIT

Array#includes with support for regex

Package Exports

  • array-has

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 (array-has) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

array-has Circle CI

Array#includes with support for regular expressions.

Installation

$ npm install array-has --save

Usage

const has = require('array-has');

has([0, 1, 2], 2).should.equal(true);
has(['a', 'b', 'c'], 'b').should.equal(true);
has(['Hello', 'world'], /hello/i).should.equal(true);

Tests

Circle CI

$ make test

License

array-has is released under the MIT license.