npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

array-has

1.0.0

@vdemedes

npmHomeRepoSnykSocket
Downloads:1
$ npm install array-has
DailyWeeklyMonthlyYearly

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.