arse
assert stuff
Install
npm install --save arse
yarn add arse
Import
import arsgy from 'arse'
var arse = require('arse')
API
arse.{method}(val[, subject][, name[, name2]])
Assert val
is of type indicated by method
(see below).
- val {*} value to assert
- subject {*} (optional) subject of assert
- name {String} name to report in error message
- nam2 {String} (optional) name of subject
Methods
str
obj
nonEmptyStr
num
sym
int
bool
undef
null
elem (use subject arg)
key (use subject arg)
Contributing
All pull requests and issues welcome!
If you're not sure how, check out the great video tutorials on egghead.io!
License
MIT © Sam Gluck