kaheglar / assert

Design by contract style assertion function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

assert

Design by contract style assertion. Throws an Error on a falsey condition.

Usage


function doStuff(args) {
  assert(args, 'args must be defined')
  ...
}

License

MIT

About

Design by contract style assertion function.

License:MIT License


Languages

Language:JavaScript 100.0%