is-whitelisted
v1.0.0
Published
Check if variable is whitelisted
Downloads
4
Maintainers
Readme
is-whitelisted
Check if variable is whitelisted
Install
$ npm install --save is-whitelisted
Usage
var isWhitelisted = require('is-whitelisted');
isWhitelisted('foo', ['foo', 'bar', 'baz']) // true
isWhitelisted('Lorem', ['foo', 'bar', 'baz']) // false
API
isWhitelisted(item, whitelist)
item
Required
Type: anything
whitelist
Required
Type: array
License
MIT © Daniel Husar