Skip to content

Commit

Permalink
feat(cast): add cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
chiui-li committed Mar 25, 2024
1 parent f6922e3 commit f7e48df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cdn/radash.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ function shift(arr, n) {
return arr;
return [...arr.slice(-shiftNumber, arr.length), ...arr.slice(0, -shiftNumber)];
}
function cast(value) {
return isArray(value) ? value : [value];
}

const reduce = async (array, asyncReducer, initValue) => {
const initProvided = initValue !== void 0;
Expand Down Expand Up @@ -937,4 +940,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, cast, 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 };
4 changes: 4 additions & 0 deletions cdn/radash.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ var radash = (function (exports) {
return arr;
return [...arr.slice(-shiftNumber, arr.length), ...arr.slice(0, -shiftNumber)];
}
function cast(value) {
return isArray(value) ? value : [value];
}

const reduce = async (array, asyncReducer, initValue) => {
const initProvided = initValue !== void 0;
Expand Down Expand Up @@ -947,6 +950,7 @@ var radash = (function (exports) {
exports.callable = callable;
exports.camel = camel;
exports.capitalize = capitalize;
exports.cast = cast;
exports.chain = chain;
exports.clone = clone;
exports.cluster = cluster;
Expand Down
Loading

0 comments on commit f7e48df

Please sign in to comment.