Skip to content
flow typed nullthrows
Branch: master
Clone or download
Latest commit e29db13 Dec 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__ Add tests for flow strict mode Dec 10, 2018
.gitignore
.travis.yml Travis drop Node 4 & 6 and add Node 10 Sep 9, 2018
LICENSE
README.md initial commit Jul 30, 2016
nullthrows.d.ts Add a second argument for a custom error message (#2) Jul 17, 2018
nullthrows.js
nullthrows.js.flow Add @flow strict Dec 10, 2018
package.json v1.1.1 Dec 10, 2018
yarn.lock Add tests for flow strict mode Dec 10, 2018

README.md

nullthrows

Build Status

A flow typed utility that accepts value (e.g. nullthrows(value)) and throws if value is null or undefined, otherwise it returns value.

Also see invariant.

You can’t perform that action at this time.