assay

make assertion functions into boolean tests

Usage no npm install needed!

<script type="module">
  import assay from 'https://cdn.skypack.dev/assay';
</script>

README

Build Status

assay

make assertion functions into boolean tests

Installation

$ npm install assay

or

$ component install nathan7/assay

API

assay(fn)

Returns a new function that returns true if fn runs normally, and false if it throws.

License

MIT