1.0.0 • Published 9 years ago
is-whitelisted v1.0.0
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
1.0.0
9 years ago