assert-ok

Assert that a value is truthy

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
assert-ok
111.0.07 years ago7 years agoMinified + gzip package size for assert-ok in KB

Readme

assert-ok Build Status
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