lbundle
Version:
Small zero-configuration bundler build on top of Rollup.js and SWC for NPM libraries
71 lines (68 loc) • 1.94 kB
JavaScript
;
var checks = require('../_virtual/checks.js');
(function (exports) {
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
isArray: function() {
return isArray;
},
isArrayFull: function() {
return isArrayFull;
},
isDefined: function() {
return isDefined;
},
isEmptyArray: function() {
return isEmptyArray;
},
isEmptyObject: function() {
return isEmptyObject;
},
isEmptyString: function() {
return isEmptyString;
},
isNil: function() {
return isNil;
},
isNull: function() {
return isNull;
},
isObject: function() {
return isObject;
},
isObjectFull: function() {
return isObjectFull;
},
isString: function() {
return isString;
},
isStringFull: function() {
return isStringFull;
},
isUndefined: function() {
return isUndefined;
}
});
const isString = (value)=>typeof value === 'string';
const isStringFull = (value)=>value.length > 0;
const isEmptyString = (value)=>value.length === 0;
const isNull = (value)=>value === null;
const isUndefined = (value)=>value === undefined;
const isNil = (value)=>value == null;
const isDefined = (value)=>value != null;
const isObject = (value)=>typeof value === 'object' && value != null;
const isObjectFull = (value)=>isObject(value) && Object.keys(value).length > 0;
const isEmptyObject = (value)=>Object.keys(value).length === 0;
const isArray = (value)=>Array.isArray(value);
const isArrayFull = (value)=>value.length > 0;
const isEmptyArray = (value)=>value.length === 0;
} (checks.__exports));
//# sourceMappingURL=checks.js.map