UNPKG

lbundle

Version:

Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries

14 lines (12 loc) 580 B
// string const isString = (value)=>typeof value === 'string'; const isStringFull = (value)=>value.length > 0; const isEmptyString = (value)=>value.length === 0; const isNil = (value)=>value == null; const isDefined = (value)=>value != null; // object const isObject = (value)=>typeof value === 'object' && value != null; const isEmptyObject = (value)=>Object.keys(value).length === 0; const isEmptyArray = (value)=>value.length === 0; export { isDefined, isEmptyArray, isEmptyObject, isEmptyString, isNil, isObject, isString, isStringFull }; //# sourceMappingURL=checks.mjs.map