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