Skip to content

danielhusar/is-whitelisted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-whitelisted Build Status

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

About

Check if variable is whitelisted

Resources

License

Stars

Watchers

Forks

Packages

No packages published