Releases: pnann/check-preconditions
Releases · pnann/check-preconditions
1.0.0
Bind-less and Better Than Ever!
check-preconditions can now be run in environments where bind
does not exist. This change also brings the gzipped file size down to a clean 1001 bytes.
0.2.1 - Bug Fixes
Updates dependencies (browserify, gulp-tsd, merge2) and fixes issue #1 regarding the exists string being incorrect.
0.2.0 - Object Returning
Checks now return the object passed in, with type information is preserved for TypeScript consumers through the use of generics.
var CheckPreconditions = require("check-preconditions");
var check = CheckPreconditions.of("example");
var input = "exampleString";
var output = check(input).is.a.string();
//input === output