assert-ok
v1.0.0
Published
Assert that a value is truthy
Downloads
50,396
Readme
assert-ok ![Build Status](https://travis-ci.org/bendrucker/assert-ok.svg?branch=master)
Assert that a value is truthy
Install
$ npm install --save assert-ok
Usage
var assertOk = require('assert-ok')
assertOk(true)
//=> noop
assertOk(false, 'My message')
//=> Error: My message
API
assertOk(input)
-> undefined
input
Required
Type: any
An input to check for truthiness.
License
MIT © Ben Drucker