JSPM

assert-ok

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19130
  • Score
    100M100P100Q138331F
  • License MIT

Assert that a value is truthy

Package Exports

  • assert-ok

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (assert-ok) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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