Skip to content

Commit

Permalink
chore: build cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
heathcliff-hu committed Sep 11, 2024
1 parent 83e8ed5 commit 7b54433
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cdn/radash.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const isNumber = (value) => {
return false;
}
};
const isBigInt = (value) => {
return typeof value === "bigint";
};
const isDate = (value) => {
return Object.prototype.toString.call(value) === "[object Date]";
};
Expand All @@ -46,6 +49,8 @@ const isEmpty = (value) => {
return true;
if (isNumber(value))
return value === 0;
if (isBigInt(value))
return value === 0n;
if (isDate(value))
return isNaN(value.getTime());
if (isFunction(value))
Expand Down Expand Up @@ -937,4 +942,4 @@ const trim = (str, charsToTrim = " ") => {
return str.replace(regex, "");
};

export { all, alphabetical, assign, boil, callable, camel, capitalize, chain, clone, cluster, compose, construct, counting, crush, dash, debounce, defer, diff, draw, first, flat, fork, get, group, guard, inRange, intersects, invert, isArray, isDate, isEmpty, isEqual, isFloat, isFunction, isInt, isNumber, isObject, isPrimitive, isPromise, isString, isSymbol, iterate, keys, last, list, listify, lowerize, map, mapEntries, mapKeys, mapValues, max, memo, merge, min, objectify, omit, parallel, partial, partob, pascal, pick, proxied, random, range, reduce, replace, replaceOrAppend, retry, select, series, set, shake, shift, shuffle, sift, sleep, snake, sort, sum, template, throttle, title, toFloat, toInt, toggle, trim, tryit as try, tryit, uid, unique, upperize, zip, zipToObject };
export { all, alphabetical, assign, boil, callable, camel, capitalize, chain, clone, cluster, compose, construct, counting, crush, dash, debounce, defer, diff, draw, first, flat, fork, get, group, guard, inRange, intersects, invert, isArray, isBigInt, isDate, isEmpty, isEqual, isFloat, isFunction, isInt, isNumber, isObject, isPrimitive, isPromise, isString, isSymbol, iterate, keys, last, list, listify, lowerize, map, mapEntries, mapKeys, mapValues, max, memo, merge, min, objectify, omit, parallel, partial, partob, pascal, pick, proxied, random, range, reduce, replace, replaceOrAppend, retry, select, series, set, shake, shift, shuffle, sift, sleep, snake, sort, sum, template, throttle, title, toFloat, toInt, toggle, trim, tryit as try, tryit, uid, unique, upperize, zip, zipToObject };
6 changes: 6 additions & 0 deletions cdn/radash.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ var radash = (function (exports) {
return false;
}
};
const isBigInt = (value) => {
return typeof value === "bigint";
};
const isDate = (value) => {
return Object.prototype.toString.call(value) === "[object Date]";
};
Expand All @@ -49,6 +52,8 @@ var radash = (function (exports) {
return true;
if (isNumber(value))
return value === 0;
if (isBigInt(value))
return value === 0n;
if (isDate(value))
return isNaN(value.getTime());
if (isFunction(value))
Expand Down Expand Up @@ -969,6 +974,7 @@ var radash = (function (exports) {
exports.intersects = intersects;
exports.invert = invert;
exports.isArray = isArray;
exports.isBigInt = isBigInt;
exports.isDate = isDate;
exports.isEmpty = isEmpty;
exports.isEqual = isEqual;
Expand Down
Loading

0 comments on commit 7b54433

Please sign in to comment.