Assert that a value is in an array
$ npm install --save assert-in
var assertIn = require('assert-in')
assertIn(['foo', 'bar'], 'foo')
//=> noop
assertIn(['foo', 'bar'], 'baz')
//=> Error: expected baz in object
var assert = assertIn(['foo', 'bar'])
//=> partially applied fn
Required
Type: array[string]
Array of string values.
Type: string
A value to assert against. If value
is omitted, a partially applied function for the provided values
is returned instead.
MIT © Ben Drucker