es-toolkit 1.47.0-dev.1832 → 1.47.0-dev.1834
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compat/add.d.mts +1 -0
- package/compat/add.mjs +1 -0
- package/compat/after.d.mts +1 -0
- package/compat/after.mjs +1 -0
- package/compat/ary.d.mts +1 -0
- package/compat/ary.mjs +1 -0
- package/compat/assign.d.mts +1 -0
- package/compat/assign.mjs +1 -0
- package/compat/assignIn.d.mts +1 -0
- package/compat/assignIn.mjs +1 -0
- package/compat/assignInWith.d.mts +1 -0
- package/compat/assignInWith.mjs +1 -0
- package/compat/assignWith.d.mts +1 -0
- package/compat/assignWith.mjs +1 -0
- package/compat/at.d.mts +1 -0
- package/compat/at.mjs +1 -0
- package/compat/attempt.d.mts +1 -0
- package/compat/attempt.mjs +1 -0
- package/compat/before.d.mts +1 -0
- package/compat/before.mjs +1 -0
- package/compat/bind.d.mts +1 -0
- package/compat/bind.mjs +1 -0
- package/compat/bindAll.d.mts +1 -0
- package/compat/bindAll.mjs +1 -0
- package/compat/bindKey.d.mts +1 -0
- package/compat/bindKey.mjs +1 -0
- package/compat/camelCase.d.mts +1 -0
- package/compat/camelCase.mjs +1 -0
- package/compat/capitalize.d.mts +1 -0
- package/compat/capitalize.mjs +1 -0
- package/compat/castArray.d.mts +1 -0
- package/compat/castArray.mjs +1 -0
- package/compat/ceil.d.mts +1 -0
- package/compat/ceil.mjs +1 -0
- package/compat/chunk.d.mts +1 -0
- package/compat/chunk.mjs +1 -0
- package/compat/clamp.d.mts +1 -0
- package/compat/clamp.mjs +1 -0
- package/compat/clone.d.mts +1 -0
- package/compat/clone.mjs +1 -0
- package/compat/cloneDeep.d.mts +1 -0
- package/compat/cloneDeep.mjs +1 -0
- package/compat/cloneDeepWith.d.mts +1 -0
- package/compat/cloneDeepWith.mjs +1 -0
- package/compat/cloneWith.d.mts +1 -0
- package/compat/cloneWith.mjs +1 -0
- package/compat/compact.d.mts +1 -0
- package/compat/compact.mjs +1 -0
- package/compat/concat.d.mts +1 -0
- package/compat/concat.mjs +1 -0
- package/compat/cond.d.mts +1 -0
- package/compat/cond.mjs +1 -0
- package/compat/conforms.d.mts +1 -0
- package/compat/conforms.mjs +1 -0
- package/compat/conformsTo.d.mts +1 -0
- package/compat/conformsTo.mjs +1 -0
- package/compat/constant.d.mts +1 -0
- package/compat/constant.mjs +1 -0
- package/compat/countBy.d.mts +1 -0
- package/compat/countBy.mjs +1 -0
- package/compat/create.d.mts +1 -0
- package/compat/create.mjs +1 -0
- package/compat/curry.d.mts +1 -0
- package/compat/curry.mjs +1 -0
- package/compat/curryRight.d.mts +1 -0
- package/compat/curryRight.mjs +1 -0
- package/compat/debounce.d.mts +1 -0
- package/compat/debounce.mjs +1 -0
- package/compat/deburr.d.mts +1 -0
- package/compat/deburr.mjs +1 -0
- package/compat/defaultTo.d.mts +1 -0
- package/compat/defaultTo.mjs +1 -0
- package/compat/defaults.d.mts +1 -0
- package/compat/defaults.mjs +1 -0
- package/compat/defaultsDeep.d.mts +1 -0
- package/compat/defaultsDeep.mjs +1 -0
- package/compat/defer.d.mts +1 -0
- package/compat/defer.mjs +1 -0
- package/compat/delay.d.mts +1 -0
- package/compat/delay.mjs +1 -0
- package/compat/difference.d.mts +1 -0
- package/compat/difference.mjs +1 -0
- package/compat/differenceBy.d.mts +1 -0
- package/compat/differenceBy.mjs +1 -0
- package/compat/differenceWith.d.mts +1 -0
- package/compat/differenceWith.mjs +1 -0
- package/compat/divide.d.mts +1 -0
- package/compat/divide.mjs +1 -0
- package/compat/drop.d.mts +1 -0
- package/compat/drop.mjs +1 -0
- package/compat/dropRight.d.mts +1 -0
- package/compat/dropRight.mjs +1 -0
- package/compat/dropRightWhile.d.mts +1 -0
- package/compat/dropRightWhile.mjs +1 -0
- package/compat/dropWhile.d.mts +1 -0
- package/compat/dropWhile.mjs +1 -0
- package/compat/each.d.mts +1 -0
- package/compat/each.mjs +1 -0
- package/compat/eachRight.d.mts +1 -0
- package/compat/eachRight.mjs +1 -0
- package/compat/endsWith.d.mts +1 -0
- package/compat/endsWith.mjs +1 -0
- package/compat/eq.d.mts +1 -0
- package/compat/eq.mjs +1 -0
- package/compat/escape.d.mts +1 -0
- package/compat/escape.mjs +1 -0
- package/compat/escapeRegExp.d.mts +1 -0
- package/compat/escapeRegExp.mjs +1 -0
- package/compat/every.d.mts +1 -0
- package/compat/every.mjs +1 -0
- package/compat/extend.d.mts +1 -0
- package/compat/extend.mjs +1 -0
- package/compat/extendWith.d.mts +1 -0
- package/compat/extendWith.mjs +1 -0
- package/compat/fill.d.mts +1 -0
- package/compat/fill.mjs +1 -0
- package/compat/filter.d.mts +1 -0
- package/compat/filter.mjs +1 -0
- package/compat/find.d.mts +1 -0
- package/compat/find.mjs +1 -0
- package/compat/findIndex.d.mts +1 -0
- package/compat/findIndex.mjs +1 -0
- package/compat/findKey.d.mts +1 -0
- package/compat/findKey.mjs +1 -0
- package/compat/findLast.d.mts +1 -0
- package/compat/findLast.mjs +1 -0
- package/compat/findLastIndex.d.mts +1 -0
- package/compat/findLastIndex.mjs +1 -0
- package/compat/findLastKey.d.mts +1 -0
- package/compat/findLastKey.mjs +1 -0
- package/compat/first.d.mts +1 -0
- package/compat/first.mjs +1 -0
- package/compat/flatMap.d.mts +1 -0
- package/compat/flatMap.mjs +1 -0
- package/compat/flatMapDeep.d.mts +1 -0
- package/compat/flatMapDeep.mjs +1 -0
- package/compat/flatMapDepth.d.mts +1 -0
- package/compat/flatMapDepth.mjs +1 -0
- package/compat/flatten.d.mts +1 -0
- package/compat/flatten.mjs +1 -0
- package/compat/flattenDeep.d.mts +1 -0
- package/compat/flattenDeep.mjs +1 -0
- package/compat/flattenDepth.d.mts +1 -0
- package/compat/flattenDepth.mjs +1 -0
- package/compat/flip.d.mts +1 -0
- package/compat/flip.mjs +1 -0
- package/compat/floor.d.mts +1 -0
- package/compat/floor.mjs +1 -0
- package/compat/flow.d.mts +1 -0
- package/compat/flow.mjs +1 -0
- package/compat/flowRight.d.mts +1 -0
- package/compat/flowRight.mjs +1 -0
- package/compat/forEach.d.mts +1 -0
- package/compat/forEach.mjs +1 -0
- package/compat/forEachRight.d.mts +1 -0
- package/compat/forEachRight.mjs +1 -0
- package/compat/forIn.d.mts +1 -0
- package/compat/forIn.mjs +1 -0
- package/compat/forInRight.d.mts +1 -0
- package/compat/forInRight.mjs +1 -0
- package/compat/forOwn.d.mts +1 -0
- package/compat/forOwn.mjs +1 -0
- package/compat/forOwnRight.d.mts +1 -0
- package/compat/forOwnRight.mjs +1 -0
- package/compat/fromPairs.d.mts +1 -0
- package/compat/fromPairs.mjs +1 -0
- package/compat/functions.d.mts +1 -0
- package/compat/functions.mjs +1 -0
- package/compat/functionsIn.d.mts +1 -0
- package/compat/functionsIn.mjs +1 -0
- package/compat/get.d.mts +1 -0
- package/compat/get.mjs +1 -0
- package/compat/groupBy.d.mts +1 -0
- package/compat/groupBy.mjs +1 -0
- package/compat/gt.d.mts +1 -0
- package/compat/gt.mjs +1 -0
- package/compat/gte.d.mts +1 -0
- package/compat/gte.mjs +1 -0
- package/compat/has.d.mts +1 -0
- package/compat/has.mjs +1 -0
- package/compat/hasIn.d.mts +1 -0
- package/compat/hasIn.mjs +1 -0
- package/compat/head.d.mts +1 -0
- package/compat/head.mjs +1 -0
- package/compat/identity.d.mts +1 -0
- package/compat/identity.mjs +1 -0
- package/compat/inRange.d.mts +1 -0
- package/compat/inRange.mjs +1 -0
- package/compat/includes.d.mts +1 -0
- package/compat/includes.mjs +1 -0
- package/compat/indexOf.d.mts +1 -0
- package/compat/indexOf.mjs +1 -0
- package/compat/initial.d.mts +1 -0
- package/compat/initial.mjs +1 -0
- package/compat/intersection.d.mts +1 -0
- package/compat/intersection.mjs +1 -0
- package/compat/intersectionBy.d.mts +1 -0
- package/compat/intersectionBy.mjs +1 -0
- package/compat/intersectionWith.d.mts +1 -0
- package/compat/intersectionWith.mjs +1 -0
- package/compat/invert.d.mts +1 -0
- package/compat/invert.mjs +1 -0
- package/compat/invertBy.d.mts +1 -0
- package/compat/invertBy.mjs +1 -0
- package/compat/invoke.d.mts +1 -0
- package/compat/invoke.mjs +1 -0
- package/compat/invokeMap.d.mts +1 -0
- package/compat/invokeMap.mjs +1 -0
- package/compat/isArguments.d.mts +1 -0
- package/compat/isArguments.mjs +1 -0
- package/compat/isArray.d.mts +1 -0
- package/compat/isArray.mjs +1 -0
- package/compat/isArrayBuffer.d.mts +1 -0
- package/compat/isArrayBuffer.mjs +1 -0
- package/compat/isArrayLike.d.mts +1 -0
- package/compat/isArrayLike.mjs +1 -0
- package/compat/isArrayLikeObject.d.mts +1 -0
- package/compat/isArrayLikeObject.mjs +1 -0
- package/compat/isBoolean.d.mts +1 -0
- package/compat/isBoolean.mjs +1 -0
- package/compat/isBuffer.d.mts +1 -0
- package/compat/isBuffer.mjs +1 -0
- package/compat/isDate.d.mts +1 -0
- package/compat/isDate.mjs +1 -0
- package/compat/isElement.d.mts +1 -0
- package/compat/isElement.mjs +1 -0
- package/compat/isEmpty.d.mts +1 -0
- package/compat/isEmpty.mjs +1 -0
- package/compat/isEqual.d.mts +1 -0
- package/compat/isEqual.mjs +1 -0
- package/compat/isEqualWith.d.mts +1 -0
- package/compat/isEqualWith.mjs +1 -0
- package/compat/isError.d.mts +1 -0
- package/compat/isError.mjs +1 -0
- package/compat/isFinite.d.mts +1 -0
- package/compat/isFinite.mjs +1 -0
- package/compat/isFunction.d.mts +1 -0
- package/compat/isFunction.mjs +1 -0
- package/compat/isInteger.d.mts +1 -0
- package/compat/isInteger.mjs +1 -0
- package/compat/isLength.d.mts +1 -0
- package/compat/isLength.mjs +1 -0
- package/compat/isMap.d.mts +1 -0
- package/compat/isMap.mjs +1 -0
- package/compat/isMatch.d.mts +1 -0
- package/compat/isMatch.mjs +1 -0
- package/compat/isMatchWith.d.mts +1 -0
- package/compat/isMatchWith.mjs +1 -0
- package/compat/isNaN.d.mts +1 -0
- package/compat/isNaN.mjs +1 -0
- package/compat/isNative.d.mts +1 -0
- package/compat/isNative.mjs +1 -0
- package/compat/isNil.d.mts +1 -0
- package/compat/isNil.mjs +1 -0
- package/compat/isNull.d.mts +1 -0
- package/compat/isNull.mjs +1 -0
- package/compat/isNumber.d.mts +1 -0
- package/compat/isNumber.mjs +1 -0
- package/compat/isObject.d.mts +1 -0
- package/compat/isObject.mjs +1 -0
- package/compat/isObjectLike.d.mts +1 -0
- package/compat/isObjectLike.mjs +1 -0
- package/compat/isPlainObject.d.mts +1 -0
- package/compat/isPlainObject.mjs +1 -0
- package/compat/isRegExp.d.mts +1 -0
- package/compat/isRegExp.mjs +1 -0
- package/compat/isSafeInteger.d.mts +1 -0
- package/compat/isSafeInteger.mjs +1 -0
- package/compat/isSet.d.mts +1 -0
- package/compat/isSet.mjs +1 -0
- package/compat/isString.d.mts +1 -0
- package/compat/isString.mjs +1 -0
- package/compat/isSymbol.d.mts +1 -0
- package/compat/isSymbol.mjs +1 -0
- package/compat/isTypedArray.d.mts +1 -0
- package/compat/isTypedArray.mjs +1 -0
- package/compat/isUndefined.d.mts +1 -0
- package/compat/isUndefined.mjs +1 -0
- package/compat/isWeakMap.d.mts +1 -0
- package/compat/isWeakMap.mjs +1 -0
- package/compat/isWeakSet.d.mts +1 -0
- package/compat/isWeakSet.mjs +1 -0
- package/compat/iteratee.d.mts +1 -0
- package/compat/iteratee.mjs +1 -0
- package/compat/join.d.mts +1 -0
- package/compat/join.mjs +1 -0
- package/compat/kebabCase.d.mts +1 -0
- package/compat/kebabCase.mjs +1 -0
- package/compat/keyBy.d.mts +1 -0
- package/compat/keyBy.mjs +1 -0
- package/compat/keys.d.mts +1 -0
- package/compat/keys.mjs +1 -0
- package/compat/keysIn.d.mts +1 -0
- package/compat/keysIn.mjs +1 -0
- package/compat/last.d.mts +1 -0
- package/compat/last.mjs +1 -0
- package/compat/lastIndexOf.d.mts +1 -0
- package/compat/lastIndexOf.mjs +1 -0
- package/compat/lowerCase.d.mts +1 -0
- package/compat/lowerCase.mjs +1 -0
- package/compat/lowerFirst.d.mts +1 -0
- package/compat/lowerFirst.mjs +1 -0
- package/compat/lt.d.mts +1 -0
- package/compat/lt.mjs +1 -0
- package/compat/lte.d.mts +1 -0
- package/compat/lte.mjs +1 -0
- package/compat/map.d.mts +1 -0
- package/compat/map.mjs +1 -0
- package/compat/mapKeys.d.mts +1 -0
- package/compat/mapKeys.mjs +1 -0
- package/compat/mapValues.d.mts +1 -0
- package/compat/mapValues.mjs +1 -0
- package/compat/matches.d.mts +1 -0
- package/compat/matches.mjs +1 -0
- package/compat/matchesProperty.d.mts +1 -0
- package/compat/matchesProperty.mjs +1 -0
- package/compat/max.d.mts +1 -0
- package/compat/max.mjs +1 -0
- package/compat/maxBy.d.mts +1 -0
- package/compat/maxBy.mjs +1 -0
- package/compat/mean.d.mts +1 -0
- package/compat/mean.mjs +1 -0
- package/compat/meanBy.d.mts +1 -0
- package/compat/meanBy.mjs +1 -0
- package/compat/memoize.d.mts +1 -0
- package/compat/memoize.mjs +1 -0
- package/compat/merge.d.mts +1 -0
- package/compat/merge.mjs +1 -0
- package/compat/mergeWith.d.mts +1 -0
- package/compat/mergeWith.mjs +1 -0
- package/compat/method.d.mts +1 -0
- package/compat/method.mjs +1 -0
- package/compat/methodOf.d.mts +1 -0
- package/compat/methodOf.mjs +1 -0
- package/compat/min.d.mts +1 -0
- package/compat/min.mjs +1 -0
- package/compat/minBy.d.mts +1 -0
- package/compat/minBy.mjs +1 -0
- package/compat/multiply.d.mts +1 -0
- package/compat/multiply.mjs +1 -0
- package/compat/negate.d.mts +1 -0
- package/compat/negate.mjs +1 -0
- package/compat/noop.d.mts +1 -0
- package/compat/noop.mjs +1 -0
- package/compat/now.d.mts +1 -0
- package/compat/now.mjs +1 -0
- package/compat/nth.d.mts +1 -0
- package/compat/nth.mjs +1 -0
- package/compat/nthArg.d.mts +1 -0
- package/compat/nthArg.mjs +1 -0
- package/compat/omit.d.mts +1 -0
- package/compat/omit.mjs +1 -0
- package/compat/omitBy.d.mts +1 -0
- package/compat/omitBy.mjs +1 -0
- package/compat/once.d.mts +1 -0
- package/compat/once.mjs +1 -0
- package/compat/orderBy.d.mts +1 -0
- package/compat/orderBy.mjs +1 -0
- package/compat/over.d.mts +1 -0
- package/compat/over.mjs +1 -0
- package/compat/overArgs.d.mts +1 -0
- package/compat/overArgs.mjs +1 -0
- package/compat/overEvery.d.mts +1 -0
- package/compat/overEvery.mjs +1 -0
- package/compat/overSome.d.mts +1 -0
- package/compat/overSome.mjs +1 -0
- package/compat/pad.d.mts +1 -0
- package/compat/pad.mjs +1 -0
- package/compat/padEnd.d.mts +1 -0
- package/compat/padEnd.mjs +1 -0
- package/compat/padStart.d.mts +1 -0
- package/compat/padStart.mjs +1 -0
- package/compat/parseInt.d.mts +1 -0
- package/compat/parseInt.mjs +1 -0
- package/compat/partial.d.mts +1 -0
- package/compat/partial.mjs +1 -0
- package/compat/partialRight.d.mts +1 -0
- package/compat/partialRight.mjs +1 -0
- package/compat/partition.d.mts +1 -0
- package/compat/partition.mjs +1 -0
- package/compat/pick.d.mts +1 -0
- package/compat/pick.mjs +1 -0
- package/compat/pickBy.d.mts +1 -0
- package/compat/pickBy.mjs +1 -0
- package/compat/property.d.mts +1 -0
- package/compat/property.mjs +1 -0
- package/compat/propertyOf.d.mts +1 -0
- package/compat/propertyOf.mjs +1 -0
- package/compat/pull.d.mts +1 -0
- package/compat/pull.mjs +1 -0
- package/compat/pullAll.d.mts +1 -0
- package/compat/pullAll.mjs +1 -0
- package/compat/pullAllBy.d.mts +1 -0
- package/compat/pullAllBy.mjs +1 -0
- package/compat/pullAllWith.d.mts +1 -0
- package/compat/pullAllWith.mjs +1 -0
- package/compat/pullAt.d.mts +1 -0
- package/compat/pullAt.mjs +1 -0
- package/compat/random.d.mts +1 -0
- package/compat/random.mjs +1 -0
- package/compat/range.d.mts +1 -0
- package/compat/range.mjs +1 -0
- package/compat/rangeRight.d.mts +1 -0
- package/compat/rangeRight.mjs +1 -0
- package/compat/rearg.d.mts +1 -0
- package/compat/rearg.mjs +1 -0
- package/compat/reduce.d.mts +1 -0
- package/compat/reduce.mjs +1 -0
- package/compat/reduceRight.d.mts +1 -0
- package/compat/reduceRight.mjs +1 -0
- package/compat/reject.d.mts +1 -0
- package/compat/reject.mjs +1 -0
- package/compat/remove.d.mts +1 -0
- package/compat/remove.mjs +1 -0
- package/compat/repeat.d.mts +1 -0
- package/compat/repeat.mjs +1 -0
- package/compat/replace.d.mts +1 -0
- package/compat/replace.mjs +1 -0
- package/compat/rest.d.mts +1 -0
- package/compat/rest.mjs +1 -0
- package/compat/result.d.mts +1 -0
- package/compat/result.mjs +1 -0
- package/compat/reverse.d.mts +1 -0
- package/compat/reverse.mjs +1 -0
- package/compat/round.d.mts +1 -0
- package/compat/round.mjs +1 -0
- package/compat/sample.d.mts +1 -0
- package/compat/sample.mjs +1 -0
- package/compat/sampleSize.d.mts +1 -0
- package/compat/sampleSize.mjs +1 -0
- package/compat/set.d.mts +1 -0
- package/compat/set.mjs +1 -0
- package/compat/setWith.d.mts +1 -0
- package/compat/setWith.mjs +1 -0
- package/compat/shuffle.d.mts +1 -0
- package/compat/shuffle.mjs +1 -0
- package/compat/size.d.mts +1 -0
- package/compat/size.mjs +1 -0
- package/compat/slice.d.mts +1 -0
- package/compat/slice.mjs +1 -0
- package/compat/snakeCase.d.mts +1 -0
- package/compat/snakeCase.mjs +1 -0
- package/compat/some.d.mts +1 -0
- package/compat/some.mjs +1 -0
- package/compat/sortBy.d.mts +1 -0
- package/compat/sortBy.mjs +1 -0
- package/compat/sortedIndex.d.mts +1 -0
- package/compat/sortedIndex.mjs +1 -0
- package/compat/sortedIndexBy.d.mts +1 -0
- package/compat/sortedIndexBy.mjs +1 -0
- package/compat/sortedIndexOf.d.mts +1 -0
- package/compat/sortedIndexOf.mjs +1 -0
- package/compat/sortedLastIndex.d.mts +1 -0
- package/compat/sortedLastIndex.mjs +1 -0
- package/compat/sortedLastIndexBy.d.mts +1 -0
- package/compat/sortedLastIndexBy.mjs +1 -0
- package/compat/sortedLastIndexOf.d.mts +1 -0
- package/compat/sortedLastIndexOf.mjs +1 -0
- package/compat/split.d.mts +1 -0
- package/compat/split.mjs +1 -0
- package/compat/spread.d.mts +1 -0
- package/compat/spread.mjs +1 -0
- package/compat/startCase.d.mts +1 -0
- package/compat/startCase.mjs +1 -0
- package/compat/startsWith.d.mts +1 -0
- package/compat/startsWith.mjs +1 -0
- package/compat/stubArray.d.mts +1 -0
- package/compat/stubArray.mjs +1 -0
- package/compat/stubFalse.d.mts +1 -0
- package/compat/stubFalse.mjs +1 -0
- package/compat/stubObject.d.mts +1 -0
- package/compat/stubObject.mjs +1 -0
- package/compat/stubString.d.mts +1 -0
- package/compat/stubString.mjs +1 -0
- package/compat/stubTrue.d.mts +1 -0
- package/compat/stubTrue.mjs +1 -0
- package/compat/subtract.d.mts +1 -0
- package/compat/subtract.mjs +1 -0
- package/compat/sum.d.mts +1 -0
- package/compat/sum.mjs +1 -0
- package/compat/sumBy.d.mts +1 -0
- package/compat/sumBy.mjs +1 -0
- package/compat/tail.d.mts +1 -0
- package/compat/tail.mjs +1 -0
- package/compat/take.d.mts +1 -0
- package/compat/take.mjs +1 -0
- package/compat/takeRight.d.mts +1 -0
- package/compat/takeRight.mjs +1 -0
- package/compat/takeRightWhile.d.mts +1 -0
- package/compat/takeRightWhile.mjs +1 -0
- package/compat/takeWhile.d.mts +1 -0
- package/compat/takeWhile.mjs +1 -0
- package/compat/template.d.mts +1 -0
- package/compat/template.mjs +1 -0
- package/compat/templateSettings.d.mts +1 -0
- package/compat/templateSettings.mjs +1 -0
- package/compat/throttle.d.mts +1 -0
- package/compat/throttle.mjs +1 -0
- package/compat/times.d.mts +1 -0
- package/compat/times.mjs +1 -0
- package/compat/toArray.d.mts +1 -0
- package/compat/toArray.mjs +1 -0
- package/compat/toDefaulted.d.mts +1 -0
- package/compat/toDefaulted.mjs +1 -0
- package/compat/toFinite.d.mts +1 -0
- package/compat/toFinite.mjs +1 -0
- package/compat/toInteger.d.mts +1 -0
- package/compat/toInteger.mjs +1 -0
- package/compat/toLength.d.mts +1 -0
- package/compat/toLength.mjs +1 -0
- package/compat/toLower.d.mts +1 -0
- package/compat/toLower.mjs +1 -0
- package/compat/toNumber.d.mts +1 -0
- package/compat/toNumber.mjs +1 -0
- package/compat/toPairs.d.mts +1 -0
- package/compat/toPairs.mjs +1 -0
- package/compat/toPairsIn.d.mts +1 -0
- package/compat/toPairsIn.mjs +1 -0
- package/compat/toPath.d.mts +1 -0
- package/compat/toPath.mjs +1 -0
- package/compat/toPlainObject.d.mts +1 -0
- package/compat/toPlainObject.mjs +1 -0
- package/compat/toSafeInteger.d.mts +1 -0
- package/compat/toSafeInteger.mjs +1 -0
- package/compat/toString.d.mts +1 -0
- package/compat/toString.mjs +1 -0
- package/compat/toUpper.d.mts +1 -0
- package/compat/toUpper.mjs +1 -0
- package/compat/transform.d.mts +1 -0
- package/compat/transform.mjs +1 -0
- package/compat/trim.d.mts +1 -0
- package/compat/trim.mjs +1 -0
- package/compat/trimEnd.d.mts +1 -0
- package/compat/trimEnd.mjs +1 -0
- package/compat/trimStart.d.mts +1 -0
- package/compat/trimStart.mjs +1 -0
- package/compat/truncate.d.mts +1 -0
- package/compat/truncate.mjs +1 -0
- package/compat/unary.d.mts +1 -0
- package/compat/unary.mjs +1 -0
- package/compat/unescape.d.mts +1 -0
- package/compat/unescape.mjs +1 -0
- package/compat/union.d.mts +1 -0
- package/compat/union.mjs +1 -0
- package/compat/unionBy.d.mts +1 -0
- package/compat/unionBy.mjs +1 -0
- package/compat/unionWith.d.mts +1 -0
- package/compat/unionWith.mjs +1 -0
- package/compat/uniq.d.mts +1 -0
- package/compat/uniq.mjs +1 -0
- package/compat/uniqBy.d.mts +1 -0
- package/compat/uniqBy.mjs +1 -0
- package/compat/uniqWith.d.mts +1 -0
- package/compat/uniqWith.mjs +1 -0
- package/compat/uniqueId.d.mts +1 -0
- package/compat/uniqueId.mjs +1 -0
- package/compat/unset.d.mts +1 -0
- package/compat/unset.mjs +1 -0
- package/compat/unzip.d.mts +1 -0
- package/compat/unzip.mjs +1 -0
- package/compat/unzipWith.d.mts +1 -0
- package/compat/unzipWith.mjs +1 -0
- package/compat/update.d.mts +1 -0
- package/compat/update.mjs +1 -0
- package/compat/updateWith.d.mts +1 -0
- package/compat/updateWith.mjs +1 -0
- package/compat/upperCase.d.mts +1 -0
- package/compat/upperCase.mjs +1 -0
- package/compat/upperFirst.d.mts +1 -0
- package/compat/upperFirst.mjs +1 -0
- package/compat/values.d.mts +1 -0
- package/compat/values.mjs +1 -0
- package/compat/valuesIn.d.mts +1 -0
- package/compat/valuesIn.mjs +1 -0
- package/compat/without.d.mts +1 -0
- package/compat/without.mjs +1 -0
- package/compat/words.d.mts +1 -0
- package/compat/words.mjs +1 -0
- package/compat/wrap.d.mts +1 -0
- package/compat/wrap.mjs +1 -0
- package/compat/xor.d.mts +1 -0
- package/compat/xor.mjs +1 -0
- package/compat/xorBy.d.mts +1 -0
- package/compat/xorBy.mjs +1 -0
- package/compat/xorWith.d.mts +1 -0
- package/compat/xorWith.mjs +1 -0
- package/compat/zip.d.mts +1 -0
- package/compat/zip.mjs +1 -0
- package/compat/zipObject.d.mts +1 -0
- package/compat/zipObject.mjs +1 -0
- package/compat/zipObjectDeep.d.mts +1 -0
- package/compat/zipObjectDeep.mjs +1 -0
- package/compat/zipWith.d.mts +1 -0
- package/compat/zipWith.mjs +1 -0
- package/dist/browser.global.js +1 -1
- package/dist/compat/util/toLength.d.mts +2 -1
- package/dist/compat/util/toLength.d.ts +2 -1
- package/dist/compat/util/toLength.js +4 -3
- package/dist/compat/util/toLength.mjs +4 -2
- package/package.json +11 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { times as default } from '../dist/compat/util/times.mjs';
|
package/compat/times.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { times as default } from '../dist/compat/util/times.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toArray as default } from '../dist/compat/util/toArray.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toArray as default } from '../dist/compat/util/toArray.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toDefaulted as default } from '../dist/compat/object/toDefaulted.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toDefaulted as default } from '../dist/compat/object/toDefaulted.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toFinite as default } from '../dist/compat/util/toFinite.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toFinite as default } from '../dist/compat/util/toFinite.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toInteger as default } from '../dist/compat/util/toInteger.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toInteger as default } from '../dist/compat/util/toInteger.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toLength as default } from '../dist/compat/util/toLength.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toLength as default } from '../dist/compat/util/toLength.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toLower as default } from '../dist/compat/string/toLower.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toLower as default } from '../dist/compat/string/toLower.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toNumber as default } from '../dist/compat/util/toNumber.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toNumber as default } from '../dist/compat/util/toNumber.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPairs as default } from '../dist/compat/object/toPairs.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPairs as default } from '../dist/compat/object/toPairs.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPairsIn as default } from '../dist/compat/object/toPairsIn.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPairsIn as default } from '../dist/compat/object/toPairsIn.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPath as default } from '../dist/compat/util/toPath.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPath as default } from '../dist/compat/util/toPath.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPlainObject as default } from '../dist/compat/util/toPlainObject.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toPlainObject as default } from '../dist/compat/util/toPlainObject.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toSafeInteger as default } from '../dist/compat/util/toSafeInteger.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toSafeInteger as default } from '../dist/compat/util/toSafeInteger.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toString as default } from '../dist/compat/util/toString.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toString as default } from '../dist/compat/util/toString.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toUpper as default } from '../dist/compat/string/toUpper.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { toUpper as default } from '../dist/compat/string/toUpper.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { transform as default } from '../dist/compat/object/transform.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { transform as default } from '../dist/compat/object/transform.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trim as default } from '../dist/compat/string/trim.mjs';
|
package/compat/trim.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trim as default } from '../dist/compat/string/trim.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trimEnd as default } from '../dist/compat/string/trimEnd.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trimEnd as default } from '../dist/compat/string/trimEnd.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trimStart as default } from '../dist/compat/string/trimStart.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { trimStart as default } from '../dist/compat/string/trimStart.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { truncate as default } from '../dist/compat/string/truncate.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { truncate as default } from '../dist/compat/string/truncate.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unary as default } from '../dist/function/unary.mjs';
|
package/compat/unary.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unary as default } from '../dist/function/unary.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unescape as default } from '../dist/compat/string/unescape.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unescape as default } from '../dist/compat/string/unescape.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { union as default } from '../dist/compat/array/union.mjs';
|
package/compat/union.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { union as default } from '../dist/compat/array/union.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unionBy as default } from '../dist/compat/array/unionBy.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unionBy as default } from '../dist/compat/array/unionBy.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unionWith as default } from '../dist/compat/array/unionWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unionWith as default } from '../dist/compat/array/unionWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniq as default } from '../dist/compat/array/uniq.mjs';
|
package/compat/uniq.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniq as default } from '../dist/compat/array/uniq.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniqBy as default } from '../dist/compat/array/uniqBy.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniqBy as default } from '../dist/compat/array/uniqBy.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniqWith as default } from '../dist/compat/array/uniqWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniqWith as default } from '../dist/compat/array/uniqWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniqueId as default } from '../dist/compat/util/uniqueId.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uniqueId as default } from '../dist/compat/util/uniqueId.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unset as default } from '../dist/compat/object/unset.mjs';
|
package/compat/unset.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unset as default } from '../dist/compat/object/unset.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unzip as default } from '../dist/compat/array/unzip.mjs';
|
package/compat/unzip.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unzip as default } from '../dist/compat/array/unzip.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unzipWith as default } from '../dist/compat/array/unzipWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unzipWith as default } from '../dist/compat/array/unzipWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { update as default } from '../dist/compat/object/update.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { update as default } from '../dist/compat/object/update.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { updateWith as default } from '../dist/compat/object/updateWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { updateWith as default } from '../dist/compat/object/updateWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { upperCase as default } from '../dist/compat/string/upperCase.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { upperCase as default } from '../dist/compat/string/upperCase.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { upperFirst as default } from '../dist/compat/string/upperFirst.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { upperFirst as default } from '../dist/compat/string/upperFirst.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { values as default } from '../dist/compat/object/values.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { values as default } from '../dist/compat/object/values.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { valuesIn as default } from '../dist/compat/object/valuesIn.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { valuesIn as default } from '../dist/compat/object/valuesIn.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { without as default } from '../dist/compat/array/without.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { without as default } from '../dist/compat/array/without.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { words as default } from '../dist/compat/string/words.mjs';
|
package/compat/words.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { words as default } from '../dist/compat/string/words.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { wrap as default } from '../dist/compat/function/wrap.mjs';
|
package/compat/wrap.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { wrap as default } from '../dist/compat/function/wrap.mjs';
|
package/compat/xor.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { xor as default } from '../dist/compat/array/xor.mjs';
|
package/compat/xor.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { xor as default } from '../dist/compat/array/xor.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { xorBy as default } from '../dist/compat/array/xorBy.mjs';
|
package/compat/xorBy.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { xorBy as default } from '../dist/compat/array/xorBy.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { xorWith as default } from '../dist/compat/array/xorWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { xorWith as default } from '../dist/compat/array/xorWith.mjs';
|
package/compat/zip.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zip as default } from '../dist/compat/array/zip.mjs';
|
package/compat/zip.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zip as default } from '../dist/compat/array/zip.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zipObject as default } from '../dist/compat/array/zipObject.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zipObject as default } from '../dist/compat/array/zipObject.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zipObjectDeep as default } from '../dist/compat/array/zipObjectDeep.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zipObjectDeep as default } from '../dist/compat/array/zipObjectDeep.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zipWith as default } from '../dist/compat/array/zipWith.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { zipWith as default } from '../dist/compat/array/zipWith.mjs';
|
package/dist/browser.global.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
${a?`function print() { __p += Array.prototype.join.call(arguments, ''); }`:``}
|
|
6
6
|
${t.variable?o:`with(obj) {\n${o}\n}`}
|
|
7
7
|
return __p;
|
|
8
|
-
}`,f=_a(()=>Function(...c,`${u}return ${d}`)(...l));if(f.source=d,f instanceof Error)throw f;return f}function Tc(e){return R(e).toLowerCase()}function Ec(e){return R(e).toUpperCase()}function Dc(e,t,n){if(e==null)return``;if(n!=null||t==null)return e.toString().trim();switch(typeof t){case`object`:return Array.isArray(t)?Un(e,t.flatMap(e=>e.toString().split(``))):Un(e,t.toString().split(``));default:return Un(e,t.toString().split(``))}}function Oc(e,t,n){return e==null?``:n!=null||t==null?e.toString().trimEnd():Vn(e,t.toString().split(``))}function kc(e,t,n){return e==null?``:n!=null||t==null?e.toString().trimStart():Hn(e,t.toString().split(``))}let Ac=/[\u200d\ud800-\udfff\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff\ufe0e\ufe0f]/;function jc(e,t){e=e==null?``:`${e}`;let n=30,r=`...`;H(t)&&(n=Mc(t.length),r=`omission`in t?`${t.omission}`:`...`);let i=e.length,a=Array.from(r).length,o=Math.max(n-a,0),s;if(Ac.test(e)&&(s=Array.from(e),i=s.length),n>=i)return e;if(i<=a)return r;let c=s===void 0?e.slice(0,o):s?.slice(0,o).join(``),l=t?.separator;if(!l)return c+=r,c;let u=l instanceof RegExp?l.source:l,d=`u`+(l instanceof RegExp?l.flags.replace(`u`,``):``),f=RegExp(`(?<result>.*(?:(?!${u}).))(?:${u})`,d).exec(c);return(f?.groups?f.groups.result:c)+r}function Mc(e){return e==null?30:e<=0?0:e}function Nc(e){return Gn(R(e))}function Pc(e){return Kn($s(Qs(e)))}function Fc(e){return qn(R(e))}let Ic=`\\p{Lu}`,Lc=`\\p{Ll}`,Rc=`(?:[\\p{Lm}\\p{Lo}]\\p{M}*)`,zc=`(?:['’](?:d|ll|m|re|s|t|ve))?`,Bc=`(?:['’](?:D|LL|M|RE|S|T|VE))?`,Vc=`[\\p{Z}\\p{P}\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\xd7\\xf7]`,Hc=`(?:${Ic}|${Rc})`,Uc=`(?:${Lc}|${Rc})`,Wc=RegExp([`${Ic}?${Lc}+${zc}(?=${Vc}|${Ic}|$)`,`${Hc}+${Bc}(?=${Vc}|${Ic}${Uc}|$)`,`${Ic}?${Uc}+${zc}`,`${Ic}+${Bc}`,`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,`\\d+`,`\\p{Emoji_Presentation}`,`\\p{Extended_Pictographic}`].join(`|`),`gu`);function Gc(e,t=Wc,n){let r=R(e);return n&&(t=Wc),typeof t==`number`&&(t=t.toString()),Array.from(r.match(t)??[]).filter(e=>e!==``)}function Kc(e){let t=e.length,n=e.map(e=>{let t=e[0],n=e[1];if(!cn(n))throw TypeError(`Expected a function`);return[G(t),n]});return function(...e){for(let r=0;r<t;r++){let t=n[r],i=t[0],a=t[1];if(i.apply(this,e))return a.apply(this,e)}}}function qc(e){return()=>e}function Jc(e,t){return e==null||Number.isNaN(e)?t:e}function Yc(e,t){return typeof e==`string`&&typeof t==`string`?e>t:v(e)>v(t)}function Xc(e,t){return typeof e==`string`&&typeof t==`string`?e>=t:v(e)>=v(t)}function Zc(e,t,...n){if(n=n.flat(1),e!=null)switch(typeof t){case`string`:return typeof e==`object`&&Object.hasOwn(e,t)?Qc(e,[t],n):Qc(e,z(t),n);case`number`:case`symbol`:return Qc(e,[t],n);default:return Array.isArray(t)?Qc(e,t,n):Qc(e,[t],n)}}function Qc(e,t,n){let r=B(e,t.slice(0,-1),e);if(r==null)return;let i=J(t),a=i?.valueOf();return i=typeof a==`number`?L(a):String(i),B(r,i)?.apply(r,n)}function $c(e,t){return typeof e==`string`&&typeof t==`string`?e<t:v(e)<v(t)}function el(e,t){return typeof e==`string`&&typeof t==`string`?e<=t:v(e)<=v(t)}function tl(e,...t){return function(n){return Zc(n,e,t)}}function nl(e,...t){return function(n){return Zc(e,n,t)}}function rl(){return Date.now()}function il(...e){e.length===1&&Array.isArray(e[0])&&(e=e[0]);let t=e.map(e=>G(e));return function(...e){return t.map(t=>t.apply(this,e))}}function al(...e){return function(...t){for(let n=0;n<e.length;++n){let r=e[n];if(!Array.isArray(r)){if(!G(r).apply(this,t))return!1;continue}for(let e=0;e<r.length;++e)if(!G(r[e]).apply(this,t))return!1}return!0}}function ol(...e){return function(...t){for(let n=0;n<e.length;++n){let r=e[n];if(!Array.isArray(r)){if(G(r).apply(this,t))return!0;continue}for(let e=0;e<r.length;++e)if(G(r[e]).apply(this,t))return!0}return!1}}function sl(){return[]}function cl(){return!1}function ll(){return{}}function ul(){return``}function dl(){return!0}function fl(e){return e==null?0:Di(
|
|
8
|
+
}`,f=_a(()=>Function(...c,`${u}return ${d}`)(...l));if(f.source=d,f instanceof Error)throw f;return f}function Tc(e){return R(e).toLowerCase()}function Ec(e){return R(e).toUpperCase()}function Dc(e,t,n){if(e==null)return``;if(n!=null||t==null)return e.toString().trim();switch(typeof t){case`object`:return Array.isArray(t)?Un(e,t.flatMap(e=>e.toString().split(``))):Un(e,t.toString().split(``));default:return Un(e,t.toString().split(``))}}function Oc(e,t,n){return e==null?``:n!=null||t==null?e.toString().trimEnd():Vn(e,t.toString().split(``))}function kc(e,t,n){return e==null?``:n!=null||t==null?e.toString().trimStart():Hn(e,t.toString().split(``))}let Ac=/[\u200d\ud800-\udfff\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff\ufe0e\ufe0f]/;function jc(e,t){e=e==null?``:`${e}`;let n=30,r=`...`;H(t)&&(n=Mc(t.length),r=`omission`in t?`${t.omission}`:`...`);let i=e.length,a=Array.from(r).length,o=Math.max(n-a,0),s;if(Ac.test(e)&&(s=Array.from(e),i=s.length),n>=i)return e;if(i<=a)return r;let c=s===void 0?e.slice(0,o):s?.slice(0,o).join(``),l=t?.separator;if(!l)return c+=r,c;let u=l instanceof RegExp?l.source:l,d=`u`+(l instanceof RegExp?l.flags.replace(`u`,``):``),f=RegExp(`(?<result>.*(?:(?!${u}).))(?:${u})`,d).exec(c);return(f?.groups?f.groups.result:c)+r}function Mc(e){return e==null?30:e<=0?0:e}function Nc(e){return Gn(R(e))}function Pc(e){return Kn($s(Qs(e)))}function Fc(e){return qn(R(e))}let Ic=`\\p{Lu}`,Lc=`\\p{Ll}`,Rc=`(?:[\\p{Lm}\\p{Lo}]\\p{M}*)`,zc=`(?:['’](?:d|ll|m|re|s|t|ve))?`,Bc=`(?:['’](?:D|LL|M|RE|S|T|VE))?`,Vc=`[\\p{Z}\\p{P}\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\xd7\\xf7]`,Hc=`(?:${Ic}|${Rc})`,Uc=`(?:${Lc}|${Rc})`,Wc=RegExp([`${Ic}?${Lc}+${zc}(?=${Vc}|${Ic}|$)`,`${Hc}+${Bc}(?=${Vc}|${Ic}${Uc}|$)`,`${Ic}?${Uc}+${zc}`,`${Ic}+${Bc}`,`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,`\\d+`,`\\p{Emoji_Presentation}`,`\\p{Extended_Pictographic}`].join(`|`),`gu`);function Gc(e,t=Wc,n){let r=R(e);return n&&(t=Wc),typeof t==`number`&&(t=t.toString()),Array.from(r.match(t)??[]).filter(e=>e!==``)}function Kc(e){let t=e.length,n=e.map(e=>{let t=e[0],n=e[1];if(!cn(n))throw TypeError(`Expected a function`);return[G(t),n]});return function(...e){for(let r=0;r<t;r++){let t=n[r],i=t[0],a=t[1];if(i.apply(this,e))return a.apply(this,e)}}}function qc(e){return()=>e}function Jc(e,t){return e==null||Number.isNaN(e)?t:e}function Yc(e,t){return typeof e==`string`&&typeof t==`string`?e>t:v(e)>v(t)}function Xc(e,t){return typeof e==`string`&&typeof t==`string`?e>=t:v(e)>=v(t)}function Zc(e,t,...n){if(n=n.flat(1),e!=null)switch(typeof t){case`string`:return typeof e==`object`&&Object.hasOwn(e,t)?Qc(e,[t],n):Qc(e,z(t),n);case`number`:case`symbol`:return Qc(e,[t],n);default:return Array.isArray(t)?Qc(e,t,n):Qc(e,[t],n)}}function Qc(e,t,n){let r=B(e,t.slice(0,-1),e);if(r==null)return;let i=J(t),a=i?.valueOf();return i=typeof a==`number`?L(a):String(i),B(r,i)?.apply(r,n)}function $c(e,t){return typeof e==`string`&&typeof t==`string`?e<t:v(e)<v(t)}function el(e,t){return typeof e==`string`&&typeof t==`string`?e<=t:v(e)<=v(t)}function tl(e,...t){return function(n){return Zc(n,e,t)}}function nl(e,...t){return function(n){return Zc(e,n,t)}}function rl(){return Date.now()}function il(...e){e.length===1&&Array.isArray(e[0])&&(e=e[0]);let t=e.map(e=>G(e));return function(...e){return t.map(t=>t.apply(this,e))}}function al(...e){return function(...t){for(let n=0;n<e.length;++n){let r=e[n];if(!Array.isArray(r)){if(!G(r).apply(this,t))return!1;continue}for(let e=0;e<r.length;++e)if(!G(r[e]).apply(this,t))return!1}return!0}}function ol(...e){return function(...t){for(let n=0;n<e.length;++n){let r=e[n];if(!Array.isArray(r)){if(G(r).apply(this,t))return!0;continue}for(let e=0;e<r.length;++e)if(G(r[e]).apply(this,t))return!0}return!1}}function sl(){return[]}function cl(){return!1}function ll(){return{}}function ul(){return``}function dl(){return!0}function fl(e){return e==null?0:Di(b(e),0,4294967295)}function pl(e){let t={},n=$(e);for(let r=0;r<n.length;r++){let i=n[r],a=e[i];i===`__proto__`?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[i]=a}return t}function ml(e){return e==null?0:Di(b(e),-uc,uc)}let hl=0;function gl(e=``){return`${e}${++hl}`}e.AbortError=Fe,e.Mutex=En,e.Semaphore=p,e.TimeoutError=Ie,e.add=qa,e.after=ha,e.allKeyed=Tn,e.ary=ga,e.assert=Yn,e.invariant=Yn,e.assign=yo,e.assignIn=wo,e.extend=wo,e.assignInWith=Eo,e.extendWith=Eo,e.assignWith=Oo,e.asyncNoop=ze,e.at=_i,e.attempt=_a,e.attemptAsync=Jn,e.before=va,e.bind=ya,e.bindAll=Zs,e.bindKey=ba,e.camelCase=ec,e.capitalize=Xs,e.cartesianProduct=t,e.castArray=Xn,e.ceil=Ya,e.chunk=Zn,e.clamp=Di,e.clone=Ao,e.cloneDeep=ur,e.cloneDeepWith=lr,e.cloneWith=Io,e.combinations=r,e.compact=Qn,e.concat=$n,e.cond=Kc,e.conforms=Fs,e.conformsTo=Ps,e.constant=qc,e.constantCase=kn,e.countBy=hr,e.create=Lo,e.curry=xa,e.curryRight=Ta,e.debounce=ka,e.deburr=Qs,e.defaultTo=Jc,e.defaults=Ro,e.defaultsDeep=zo,e.defer=Aa,e.delay=ja,e.difference=gr,e.differenceBy=vr,e.differenceWith=yr,e.divide=Xa,e.drop=br,e.dropRight=xr,e.dropRightWhile=Sr,e.dropWhile=wr,e.each=Er,e.forEach=Er,e.eachRight=Dr,e.forEachRight=Dr,e.endsWith=tc,e.eq=N,e.escape=nc,e.escapeRegExp=rc,e.every=Or,e.fill=Ar,e.filter=jr,e.filterAsync=h,e.find=Mr,e.findIndex=Nr,e.findKey=Wo,e.findLast=Pr,e.findLastIndex=Fr,e.findLastKey=Go,e.first=Ir,e.head=Ir,e.flatMap=Br,e.flatMapAsync=ee,e.flatMapDeep=Hr,e.flatMapDepth=Vr,e.flatten=Lr,e.flattenDeep=Ur,e.flattenDepth=Rr,e.flattenObject=Rt,e.flip=Ma,e.floor=Za,e.flow=Na,e.flowRight=Pa,e.forEachAsync=te,e.forIn=Ko,e.forInRight=qo,e.forOwn=Jo,e.forOwnRight=Yo,e.fromPairs=Xo,e.functions=Zo,e.functionsIn=Qo,e.get=B,e.groupBy=Wr,e.gt=Yc,e.gte=Xc,e.has=mr,e.hasIn=$o,e.identity=X,e.inRange=Qa,e.includes=Gr,e.indexOf=Kr,e.initial=qr,e.intersection=Jr,e.intersectionBy=Yr,e.intersectionWith=Zr,e.invert=es,e.invertBy=ts,e.invoke=Zc,e.invokeMap=$r,e.isArguments=pr,e.isArray=A,e.isArrayBuffer=Is,e.isArrayLike=I,e.isArrayLikeObject=q,e.isBlob=Qt,e.isBoolean=Ls,e.isBrowser=$t,e.isBuffer=Cs,e.isDate=Rs,e.isElement=zs,e.isEmpty=Bs,e.isEmptyObject=tn,e.isEqual=on,e.isEqualWith=Vs,e.isError=Hs,e.isFile=sn,e.isFinite=Us,e.isFunction=Ds,e.isInteger=Ws,e.isJSON=ln,e.isJSONArray=dn,e.isJSONObject=fn,e.isJSONValue=un,e.isLength=Os,e.isMap=Oi,e.isMatch=cr,e.isMatchWith=nr,e.isNaN=Ri,e.isNative=js,e.isNil=Mi,e.isNode=hn,e.isNotNil=gn,e.isNull=Ms,e.isNumber=Bi,e.isObject=H,e.isObjectLike=K,e.isPlainObject=M,e.isPrimitive=S,e.isPromise=vn,e.isRegExp=Gs,e.isSafeInteger=Ks,e.isSet=qs,e.isString=kr,e.isSubset=ce,e.isSubsetWith=le,e.isSymbol=_,e.isTypedArray=Z,e.isUndefined=Ns,e.isWeakMap=Js,e.isWeakSet=Ys,e.iteratee=G,e.join=ei,e.kebabCase=ic,e.keyBy=ni,e.keys=Q,e.keysIn=$,e.last=J,e.lastIndexOf=ri,e.limitAsync=m,e.lowerCase=ac,e.lowerFirst=oc,e.lt=$c,e.lte=el,e.map=zr,e.mapAsync=de,e.mapKeys=ns,e.mapValues=rs,e.matches=U,e.matchesProperty=W,e.max=$a,e.maxBy=eo,e.mean=ro,e.meanBy=io,e.median=at,e.medianBy=ot,e.memoize=Fa,e.merge=os,e.mergeWith=is,e.method=tl,e.methodOf=nl,e.min=ao,e.minBy=oo,e.multiply=so,e.negate=Si,e.noop=ho,e.now=rl,e.nth=ii,e.nthArg=Ia,e.omit=cs,e.omitBy=fs,e.once=La,e.orderBy=ui,e.over=il,e.overArgs=Ra,e.overEvery=al,e.overSome=ol,e.pad=sc,e.padEnd=cc,e.padStart=lc,e.parseInt=co,e.partial=za,e.partialRight=Ba,e.partition=di,e.pascalCase=zn,e.percentile=st,e.pick=ps,e.pickBy=ms,e.property=V,e.propertyOf=hs,e.pull=fi,e.pullAll=pi,e.pullAllBy=mi,e.pullAllWith=gi,e.pullAt=bi,e.random=lo,e.randomInt=ye,e.range=uo,e.rangeRight=fo,e.rearg=Va,e.reduce=ti,e.reduceAsync=he,e.reduceRight=xi,e.reject=Ci,e.remove=wi,e.repeat=dc,e.replace=fc,e.rest=Ha,e.result=gs,e.retry=tt,e.reverse=Ti,e.reverseString=Bn,e.round=po,e.sample=Ei,e.sampleSize=Ai,e.set=fa,e.setWith=_s,e.shuffle=Ni,e.size=Pi,e.slice=Fi,e.snakeCase=pc,e.some=Ii,e.sortBy=Li,e.sortKeys=Ut,e.sortedIndex=Vi,e.sortedIndexBy=zi,e.sortedIndexOf=Hi,e.sortedLastIndex=Wi,e.sortedLastIndexBy=Ui,e.sortedLastIndexOf=Gi,e.split=mc,e.spread=Ua,e.startCase=hc,e.startsWith=gc,e.stubArray=sl,e.stubFalse=cl,e.stubObject=ll,e.stubString=ul,e.stubTrue=dl,e.subtract=mo,e.sum=no,e.sumBy=to,e.tail=Ki,e.take=qi,e.takeRight=Ji,e.takeRightWhile=Yi,e.takeWhile=Xi,e.template=wc,e.templateSettings=Cc,e.throttle=Wa,e.timeout=Dn,e.times=_o,e.toArray=ki,e.toCamelCaseKeys=qt,e.toDefaulted=vs,e.toFilled=Te,e.toFinite=y,e.toInteger=b,e.toLength=fl,e.toLower=Tc,e.toMerged=Jt,e.toNumber=v,e.toPairs=xs,e.toPairsIn=Ss,e.toPath=z,e.toPlainObject=pl,e.toSafeInteger=ml,e.toSnakeCaseKeys=Xt,e.toString=R,e.toUpper=Ec,e.transform=ws,e.trim=Dc,e.trimEnd=Oc,e.trimStart=kc,e.truncate=jc,e.unary=Ga,e.unescape=Nc,e.union=Zi,e.unionBy=Qi,e.unionWith=$i,e.uniq=Xr,e.uniqBy=ea,e.uniqWith=ta,e.uniqueId=gl,e.unset=vi,e.unzip=na,e.unzipWith=ra,e.update=Ts,e.updateWith=da,e.upperCase=Pc,e.upperFirst=Fc,e.values=ji,e.valuesIn=Es,e.windowed=Ae,e.withTimeout=On,e.without=ia,e.words=Gc,e.wrap=Ka,e.xor=aa,e.xorBy=oa,e.xorWith=sa,e.zip=ca,e.zipObject=ua,e.zipObjectDeep=pa,e.zipWith=ma});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Converts the value to a valid index. A valid index is an integer that is greater than or equal to `0` and less than or equal to `2^32 - 1`.
|
|
4
4
|
*
|
|
5
|
-
* It converts the given value to
|
|
5
|
+
* It converts the given value to an integer. If the value is less than `0`, it returns `0`. If the value exceeds `2^32 - 1`, it returns `2^32 - 1`. Values that cannot be converted to a number (such as `NaN` or non-numeric strings) return `0`.
|
|
6
6
|
*
|
|
7
7
|
* @param {unknown} value - The value to convert to a valid index.
|
|
8
8
|
* @returns {number} The converted value.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* toLength(1.9) // => 1
|
|
14
14
|
* toLength('42') // => 42
|
|
15
15
|
* toLength(null) // => 0
|
|
16
|
+
* toLength('a') // => 0
|
|
16
17
|
*/
|
|
17
18
|
declare function toLength(value: any): number;
|
|
18
19
|
//#endregion
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Converts the value to a valid index. A valid index is an integer that is greater than or equal to `0` and less than or equal to `2^32 - 1`.
|
|
4
4
|
*
|
|
5
|
-
* It converts the given value to
|
|
5
|
+
* It converts the given value to an integer. If the value is less than `0`, it returns `0`. If the value exceeds `2^32 - 1`, it returns `2^32 - 1`. Values that cannot be converted to a number (such as `NaN` or non-numeric strings) return `0`.
|
|
6
6
|
*
|
|
7
7
|
* @param {unknown} value - The value to convert to a valid index.
|
|
8
8
|
* @returns {number} The converted value.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* toLength(1.9) // => 1
|
|
14
14
|
* toLength('42') // => 42
|
|
15
15
|
* toLength(null) // => 0
|
|
16
|
+
* toLength('a') // => 0
|
|
16
17
|
*/
|
|
17
18
|
declare function toLength(value: any): number;
|
|
18
19
|
//#endregion
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
const require_toInteger = require("./toInteger.js");
|
|
1
2
|
const require_clamp = require("../math/clamp.js");
|
|
2
3
|
const require_MAX_ARRAY_LENGTH = require("../_internal/MAX_ARRAY_LENGTH.js");
|
|
3
4
|
//#region src/compat/util/toLength.ts
|
|
4
5
|
/**
|
|
5
6
|
* Converts the value to a valid index. A valid index is an integer that is greater than or equal to `0` and less than or equal to `2^32 - 1`.
|
|
6
7
|
*
|
|
7
|
-
* It converts the given value to
|
|
8
|
+
* It converts the given value to an integer. If the value is less than `0`, it returns `0`. If the value exceeds `2^32 - 1`, it returns `2^32 - 1`. Values that cannot be converted to a number (such as `NaN` or non-numeric strings) return `0`.
|
|
8
9
|
*
|
|
9
10
|
* @param {unknown} value - The value to convert to a valid index.
|
|
10
11
|
* @returns {number} The converted value.
|
|
@@ -15,11 +16,11 @@ const require_MAX_ARRAY_LENGTH = require("../_internal/MAX_ARRAY_LENGTH.js");
|
|
|
15
16
|
* toLength(1.9) // => 1
|
|
16
17
|
* toLength('42') // => 42
|
|
17
18
|
* toLength(null) // => 0
|
|
19
|
+
* toLength('a') // => 0
|
|
18
20
|
*/
|
|
19
21
|
function toLength(value) {
|
|
20
22
|
if (value == null) return 0;
|
|
21
|
-
|
|
22
|
-
return require_clamp.clamp(length, 0, require_MAX_ARRAY_LENGTH.MAX_ARRAY_LENGTH);
|
|
23
|
+
return require_clamp.clamp(require_toInteger.toInteger(value), 0, require_MAX_ARRAY_LENGTH.MAX_ARRAY_LENGTH);
|
|
23
24
|
}
|
|
24
25
|
//#endregion
|
|
25
26
|
exports.toLength = toLength;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { toInteger } from "./toInteger.mjs";
|
|
1
2
|
import { clamp } from "../math/clamp.mjs";
|
|
2
3
|
import { MAX_ARRAY_LENGTH } from "../_internal/MAX_ARRAY_LENGTH.mjs";
|
|
3
4
|
//#region src/compat/util/toLength.ts
|
|
4
5
|
/**
|
|
5
6
|
* Converts the value to a valid index. A valid index is an integer that is greater than or equal to `0` and less than or equal to `2^32 - 1`.
|
|
6
7
|
*
|
|
7
|
-
* It converts the given value to
|
|
8
|
+
* It converts the given value to an integer. If the value is less than `0`, it returns `0`. If the value exceeds `2^32 - 1`, it returns `2^32 - 1`. Values that cannot be converted to a number (such as `NaN` or non-numeric strings) return `0`.
|
|
8
9
|
*
|
|
9
10
|
* @param {unknown} value - The value to convert to a valid index.
|
|
10
11
|
* @returns {number} The converted value.
|
|
@@ -15,10 +16,11 @@ import { MAX_ARRAY_LENGTH } from "../_internal/MAX_ARRAY_LENGTH.mjs";
|
|
|
15
16
|
* toLength(1.9) // => 1
|
|
16
17
|
* toLength('42') // => 42
|
|
17
18
|
* toLength(null) // => 0
|
|
19
|
+
* toLength('a') // => 0
|
|
18
20
|
*/
|
|
19
21
|
function toLength(value) {
|
|
20
22
|
if (value == null) return 0;
|
|
21
|
-
return clamp(
|
|
23
|
+
return clamp(toInteger(value), 0, MAX_ARRAY_LENGTH);
|
|
22
24
|
}
|
|
23
25
|
//#endregion
|
|
24
26
|
export { toLength };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
|
-
"version": "1.47.0-dev.
|
|
3
|
+
"version": "1.47.0-dev.1834+cb464cc3",
|
|
4
4
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
5
5
|
"homepage": "https://es-toolkit.dev",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
@@ -43,7 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"./compat/*": {
|
|
46
|
-
"
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./compat/*.d.mts",
|
|
48
|
+
"default": "./compat/*.mjs"
|
|
49
|
+
},
|
|
50
|
+
"require": {
|
|
47
51
|
"types": "./compat/*.d.ts",
|
|
48
52
|
"default": "./compat/*.js"
|
|
49
53
|
}
|
|
@@ -269,7 +273,11 @@
|
|
|
269
273
|
}
|
|
270
274
|
},
|
|
271
275
|
"./compat/*": {
|
|
272
|
-
"
|
|
276
|
+
"import": {
|
|
277
|
+
"types": "./compat/*.d.mts",
|
|
278
|
+
"default": "./compat/*.mjs"
|
|
279
|
+
},
|
|
280
|
+
"require": {
|
|
273
281
|
"types": "./compat/*.d.ts",
|
|
274
282
|
"default": "./compat/*.js"
|
|
275
283
|
}
|