Assert must start with is(x) followed by the sequence of checks. First failed assert in sequence will throw an exception.
is(x).check1.check2...
Check is a function taking the value and returning boolean. Checks can be created with the same sequence of checks starting with is.
const { check } = is.check1.check2...
is.undefinedis.integeris.numberis.stringis.booleanis.symbolis.functionis.objectis.arrayis.plainObjectis.instanceOf( T )
is.empty- x is null or undefined.is.falsy- !x.is.truthy- !!x.is.eq( y )is.le( y )is.ltis.geis.gtis.stringLike( /regexp/ )
is.arrayOf( check )is.objectOf( check )is.shape( { a : check, b : value, ... } )
is.either( is.string, is.number, ... )