pure-parse
Version:
Strongly typed validation library that decouples type aliases from validation logic
2 lines (1 loc) • 553 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=n=>n===null,t=n=>typeof n>"u",o=n=>typeof n=="boolean",s=n=>typeof n=="number",e=n=>typeof n=="string",r=n=>typeof n=="bigint",y=n=>typeof n=="symbol",c=n=>typeof n=="object"&&n!==null,l=Array.isArray,u=n=>typeof n=="function",b=n=>n.length!==0;exports.isArray=l;exports.isBigInt=r;exports.isBoolean=o;exports.isFunction=u;exports.isNonEmptyArray=b;exports.isNull=i;exports.isNumber=s;exports.isObject=c;exports.isString=e;exports.isSymbol=y;exports.isUndefined=t;