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.
Files changed (600) hide show
  1. package/compat/add.d.mts +1 -0
  2. package/compat/add.mjs +1 -0
  3. package/compat/after.d.mts +1 -0
  4. package/compat/after.mjs +1 -0
  5. package/compat/ary.d.mts +1 -0
  6. package/compat/ary.mjs +1 -0
  7. package/compat/assign.d.mts +1 -0
  8. package/compat/assign.mjs +1 -0
  9. package/compat/assignIn.d.mts +1 -0
  10. package/compat/assignIn.mjs +1 -0
  11. package/compat/assignInWith.d.mts +1 -0
  12. package/compat/assignInWith.mjs +1 -0
  13. package/compat/assignWith.d.mts +1 -0
  14. package/compat/assignWith.mjs +1 -0
  15. package/compat/at.d.mts +1 -0
  16. package/compat/at.mjs +1 -0
  17. package/compat/attempt.d.mts +1 -0
  18. package/compat/attempt.mjs +1 -0
  19. package/compat/before.d.mts +1 -0
  20. package/compat/before.mjs +1 -0
  21. package/compat/bind.d.mts +1 -0
  22. package/compat/bind.mjs +1 -0
  23. package/compat/bindAll.d.mts +1 -0
  24. package/compat/bindAll.mjs +1 -0
  25. package/compat/bindKey.d.mts +1 -0
  26. package/compat/bindKey.mjs +1 -0
  27. package/compat/camelCase.d.mts +1 -0
  28. package/compat/camelCase.mjs +1 -0
  29. package/compat/capitalize.d.mts +1 -0
  30. package/compat/capitalize.mjs +1 -0
  31. package/compat/castArray.d.mts +1 -0
  32. package/compat/castArray.mjs +1 -0
  33. package/compat/ceil.d.mts +1 -0
  34. package/compat/ceil.mjs +1 -0
  35. package/compat/chunk.d.mts +1 -0
  36. package/compat/chunk.mjs +1 -0
  37. package/compat/clamp.d.mts +1 -0
  38. package/compat/clamp.mjs +1 -0
  39. package/compat/clone.d.mts +1 -0
  40. package/compat/clone.mjs +1 -0
  41. package/compat/cloneDeep.d.mts +1 -0
  42. package/compat/cloneDeep.mjs +1 -0
  43. package/compat/cloneDeepWith.d.mts +1 -0
  44. package/compat/cloneDeepWith.mjs +1 -0
  45. package/compat/cloneWith.d.mts +1 -0
  46. package/compat/cloneWith.mjs +1 -0
  47. package/compat/compact.d.mts +1 -0
  48. package/compat/compact.mjs +1 -0
  49. package/compat/concat.d.mts +1 -0
  50. package/compat/concat.mjs +1 -0
  51. package/compat/cond.d.mts +1 -0
  52. package/compat/cond.mjs +1 -0
  53. package/compat/conforms.d.mts +1 -0
  54. package/compat/conforms.mjs +1 -0
  55. package/compat/conformsTo.d.mts +1 -0
  56. package/compat/conformsTo.mjs +1 -0
  57. package/compat/constant.d.mts +1 -0
  58. package/compat/constant.mjs +1 -0
  59. package/compat/countBy.d.mts +1 -0
  60. package/compat/countBy.mjs +1 -0
  61. package/compat/create.d.mts +1 -0
  62. package/compat/create.mjs +1 -0
  63. package/compat/curry.d.mts +1 -0
  64. package/compat/curry.mjs +1 -0
  65. package/compat/curryRight.d.mts +1 -0
  66. package/compat/curryRight.mjs +1 -0
  67. package/compat/debounce.d.mts +1 -0
  68. package/compat/debounce.mjs +1 -0
  69. package/compat/deburr.d.mts +1 -0
  70. package/compat/deburr.mjs +1 -0
  71. package/compat/defaultTo.d.mts +1 -0
  72. package/compat/defaultTo.mjs +1 -0
  73. package/compat/defaults.d.mts +1 -0
  74. package/compat/defaults.mjs +1 -0
  75. package/compat/defaultsDeep.d.mts +1 -0
  76. package/compat/defaultsDeep.mjs +1 -0
  77. package/compat/defer.d.mts +1 -0
  78. package/compat/defer.mjs +1 -0
  79. package/compat/delay.d.mts +1 -0
  80. package/compat/delay.mjs +1 -0
  81. package/compat/difference.d.mts +1 -0
  82. package/compat/difference.mjs +1 -0
  83. package/compat/differenceBy.d.mts +1 -0
  84. package/compat/differenceBy.mjs +1 -0
  85. package/compat/differenceWith.d.mts +1 -0
  86. package/compat/differenceWith.mjs +1 -0
  87. package/compat/divide.d.mts +1 -0
  88. package/compat/divide.mjs +1 -0
  89. package/compat/drop.d.mts +1 -0
  90. package/compat/drop.mjs +1 -0
  91. package/compat/dropRight.d.mts +1 -0
  92. package/compat/dropRight.mjs +1 -0
  93. package/compat/dropRightWhile.d.mts +1 -0
  94. package/compat/dropRightWhile.mjs +1 -0
  95. package/compat/dropWhile.d.mts +1 -0
  96. package/compat/dropWhile.mjs +1 -0
  97. package/compat/each.d.mts +1 -0
  98. package/compat/each.mjs +1 -0
  99. package/compat/eachRight.d.mts +1 -0
  100. package/compat/eachRight.mjs +1 -0
  101. package/compat/endsWith.d.mts +1 -0
  102. package/compat/endsWith.mjs +1 -0
  103. package/compat/eq.d.mts +1 -0
  104. package/compat/eq.mjs +1 -0
  105. package/compat/escape.d.mts +1 -0
  106. package/compat/escape.mjs +1 -0
  107. package/compat/escapeRegExp.d.mts +1 -0
  108. package/compat/escapeRegExp.mjs +1 -0
  109. package/compat/every.d.mts +1 -0
  110. package/compat/every.mjs +1 -0
  111. package/compat/extend.d.mts +1 -0
  112. package/compat/extend.mjs +1 -0
  113. package/compat/extendWith.d.mts +1 -0
  114. package/compat/extendWith.mjs +1 -0
  115. package/compat/fill.d.mts +1 -0
  116. package/compat/fill.mjs +1 -0
  117. package/compat/filter.d.mts +1 -0
  118. package/compat/filter.mjs +1 -0
  119. package/compat/find.d.mts +1 -0
  120. package/compat/find.mjs +1 -0
  121. package/compat/findIndex.d.mts +1 -0
  122. package/compat/findIndex.mjs +1 -0
  123. package/compat/findKey.d.mts +1 -0
  124. package/compat/findKey.mjs +1 -0
  125. package/compat/findLast.d.mts +1 -0
  126. package/compat/findLast.mjs +1 -0
  127. package/compat/findLastIndex.d.mts +1 -0
  128. package/compat/findLastIndex.mjs +1 -0
  129. package/compat/findLastKey.d.mts +1 -0
  130. package/compat/findLastKey.mjs +1 -0
  131. package/compat/first.d.mts +1 -0
  132. package/compat/first.mjs +1 -0
  133. package/compat/flatMap.d.mts +1 -0
  134. package/compat/flatMap.mjs +1 -0
  135. package/compat/flatMapDeep.d.mts +1 -0
  136. package/compat/flatMapDeep.mjs +1 -0
  137. package/compat/flatMapDepth.d.mts +1 -0
  138. package/compat/flatMapDepth.mjs +1 -0
  139. package/compat/flatten.d.mts +1 -0
  140. package/compat/flatten.mjs +1 -0
  141. package/compat/flattenDeep.d.mts +1 -0
  142. package/compat/flattenDeep.mjs +1 -0
  143. package/compat/flattenDepth.d.mts +1 -0
  144. package/compat/flattenDepth.mjs +1 -0
  145. package/compat/flip.d.mts +1 -0
  146. package/compat/flip.mjs +1 -0
  147. package/compat/floor.d.mts +1 -0
  148. package/compat/floor.mjs +1 -0
  149. package/compat/flow.d.mts +1 -0
  150. package/compat/flow.mjs +1 -0
  151. package/compat/flowRight.d.mts +1 -0
  152. package/compat/flowRight.mjs +1 -0
  153. package/compat/forEach.d.mts +1 -0
  154. package/compat/forEach.mjs +1 -0
  155. package/compat/forEachRight.d.mts +1 -0
  156. package/compat/forEachRight.mjs +1 -0
  157. package/compat/forIn.d.mts +1 -0
  158. package/compat/forIn.mjs +1 -0
  159. package/compat/forInRight.d.mts +1 -0
  160. package/compat/forInRight.mjs +1 -0
  161. package/compat/forOwn.d.mts +1 -0
  162. package/compat/forOwn.mjs +1 -0
  163. package/compat/forOwnRight.d.mts +1 -0
  164. package/compat/forOwnRight.mjs +1 -0
  165. package/compat/fromPairs.d.mts +1 -0
  166. package/compat/fromPairs.mjs +1 -0
  167. package/compat/functions.d.mts +1 -0
  168. package/compat/functions.mjs +1 -0
  169. package/compat/functionsIn.d.mts +1 -0
  170. package/compat/functionsIn.mjs +1 -0
  171. package/compat/get.d.mts +1 -0
  172. package/compat/get.mjs +1 -0
  173. package/compat/groupBy.d.mts +1 -0
  174. package/compat/groupBy.mjs +1 -0
  175. package/compat/gt.d.mts +1 -0
  176. package/compat/gt.mjs +1 -0
  177. package/compat/gte.d.mts +1 -0
  178. package/compat/gte.mjs +1 -0
  179. package/compat/has.d.mts +1 -0
  180. package/compat/has.mjs +1 -0
  181. package/compat/hasIn.d.mts +1 -0
  182. package/compat/hasIn.mjs +1 -0
  183. package/compat/head.d.mts +1 -0
  184. package/compat/head.mjs +1 -0
  185. package/compat/identity.d.mts +1 -0
  186. package/compat/identity.mjs +1 -0
  187. package/compat/inRange.d.mts +1 -0
  188. package/compat/inRange.mjs +1 -0
  189. package/compat/includes.d.mts +1 -0
  190. package/compat/includes.mjs +1 -0
  191. package/compat/indexOf.d.mts +1 -0
  192. package/compat/indexOf.mjs +1 -0
  193. package/compat/initial.d.mts +1 -0
  194. package/compat/initial.mjs +1 -0
  195. package/compat/intersection.d.mts +1 -0
  196. package/compat/intersection.mjs +1 -0
  197. package/compat/intersectionBy.d.mts +1 -0
  198. package/compat/intersectionBy.mjs +1 -0
  199. package/compat/intersectionWith.d.mts +1 -0
  200. package/compat/intersectionWith.mjs +1 -0
  201. package/compat/invert.d.mts +1 -0
  202. package/compat/invert.mjs +1 -0
  203. package/compat/invertBy.d.mts +1 -0
  204. package/compat/invertBy.mjs +1 -0
  205. package/compat/invoke.d.mts +1 -0
  206. package/compat/invoke.mjs +1 -0
  207. package/compat/invokeMap.d.mts +1 -0
  208. package/compat/invokeMap.mjs +1 -0
  209. package/compat/isArguments.d.mts +1 -0
  210. package/compat/isArguments.mjs +1 -0
  211. package/compat/isArray.d.mts +1 -0
  212. package/compat/isArray.mjs +1 -0
  213. package/compat/isArrayBuffer.d.mts +1 -0
  214. package/compat/isArrayBuffer.mjs +1 -0
  215. package/compat/isArrayLike.d.mts +1 -0
  216. package/compat/isArrayLike.mjs +1 -0
  217. package/compat/isArrayLikeObject.d.mts +1 -0
  218. package/compat/isArrayLikeObject.mjs +1 -0
  219. package/compat/isBoolean.d.mts +1 -0
  220. package/compat/isBoolean.mjs +1 -0
  221. package/compat/isBuffer.d.mts +1 -0
  222. package/compat/isBuffer.mjs +1 -0
  223. package/compat/isDate.d.mts +1 -0
  224. package/compat/isDate.mjs +1 -0
  225. package/compat/isElement.d.mts +1 -0
  226. package/compat/isElement.mjs +1 -0
  227. package/compat/isEmpty.d.mts +1 -0
  228. package/compat/isEmpty.mjs +1 -0
  229. package/compat/isEqual.d.mts +1 -0
  230. package/compat/isEqual.mjs +1 -0
  231. package/compat/isEqualWith.d.mts +1 -0
  232. package/compat/isEqualWith.mjs +1 -0
  233. package/compat/isError.d.mts +1 -0
  234. package/compat/isError.mjs +1 -0
  235. package/compat/isFinite.d.mts +1 -0
  236. package/compat/isFinite.mjs +1 -0
  237. package/compat/isFunction.d.mts +1 -0
  238. package/compat/isFunction.mjs +1 -0
  239. package/compat/isInteger.d.mts +1 -0
  240. package/compat/isInteger.mjs +1 -0
  241. package/compat/isLength.d.mts +1 -0
  242. package/compat/isLength.mjs +1 -0
  243. package/compat/isMap.d.mts +1 -0
  244. package/compat/isMap.mjs +1 -0
  245. package/compat/isMatch.d.mts +1 -0
  246. package/compat/isMatch.mjs +1 -0
  247. package/compat/isMatchWith.d.mts +1 -0
  248. package/compat/isMatchWith.mjs +1 -0
  249. package/compat/isNaN.d.mts +1 -0
  250. package/compat/isNaN.mjs +1 -0
  251. package/compat/isNative.d.mts +1 -0
  252. package/compat/isNative.mjs +1 -0
  253. package/compat/isNil.d.mts +1 -0
  254. package/compat/isNil.mjs +1 -0
  255. package/compat/isNull.d.mts +1 -0
  256. package/compat/isNull.mjs +1 -0
  257. package/compat/isNumber.d.mts +1 -0
  258. package/compat/isNumber.mjs +1 -0
  259. package/compat/isObject.d.mts +1 -0
  260. package/compat/isObject.mjs +1 -0
  261. package/compat/isObjectLike.d.mts +1 -0
  262. package/compat/isObjectLike.mjs +1 -0
  263. package/compat/isPlainObject.d.mts +1 -0
  264. package/compat/isPlainObject.mjs +1 -0
  265. package/compat/isRegExp.d.mts +1 -0
  266. package/compat/isRegExp.mjs +1 -0
  267. package/compat/isSafeInteger.d.mts +1 -0
  268. package/compat/isSafeInteger.mjs +1 -0
  269. package/compat/isSet.d.mts +1 -0
  270. package/compat/isSet.mjs +1 -0
  271. package/compat/isString.d.mts +1 -0
  272. package/compat/isString.mjs +1 -0
  273. package/compat/isSymbol.d.mts +1 -0
  274. package/compat/isSymbol.mjs +1 -0
  275. package/compat/isTypedArray.d.mts +1 -0
  276. package/compat/isTypedArray.mjs +1 -0
  277. package/compat/isUndefined.d.mts +1 -0
  278. package/compat/isUndefined.mjs +1 -0
  279. package/compat/isWeakMap.d.mts +1 -0
  280. package/compat/isWeakMap.mjs +1 -0
  281. package/compat/isWeakSet.d.mts +1 -0
  282. package/compat/isWeakSet.mjs +1 -0
  283. package/compat/iteratee.d.mts +1 -0
  284. package/compat/iteratee.mjs +1 -0
  285. package/compat/join.d.mts +1 -0
  286. package/compat/join.mjs +1 -0
  287. package/compat/kebabCase.d.mts +1 -0
  288. package/compat/kebabCase.mjs +1 -0
  289. package/compat/keyBy.d.mts +1 -0
  290. package/compat/keyBy.mjs +1 -0
  291. package/compat/keys.d.mts +1 -0
  292. package/compat/keys.mjs +1 -0
  293. package/compat/keysIn.d.mts +1 -0
  294. package/compat/keysIn.mjs +1 -0
  295. package/compat/last.d.mts +1 -0
  296. package/compat/last.mjs +1 -0
  297. package/compat/lastIndexOf.d.mts +1 -0
  298. package/compat/lastIndexOf.mjs +1 -0
  299. package/compat/lowerCase.d.mts +1 -0
  300. package/compat/lowerCase.mjs +1 -0
  301. package/compat/lowerFirst.d.mts +1 -0
  302. package/compat/lowerFirst.mjs +1 -0
  303. package/compat/lt.d.mts +1 -0
  304. package/compat/lt.mjs +1 -0
  305. package/compat/lte.d.mts +1 -0
  306. package/compat/lte.mjs +1 -0
  307. package/compat/map.d.mts +1 -0
  308. package/compat/map.mjs +1 -0
  309. package/compat/mapKeys.d.mts +1 -0
  310. package/compat/mapKeys.mjs +1 -0
  311. package/compat/mapValues.d.mts +1 -0
  312. package/compat/mapValues.mjs +1 -0
  313. package/compat/matches.d.mts +1 -0
  314. package/compat/matches.mjs +1 -0
  315. package/compat/matchesProperty.d.mts +1 -0
  316. package/compat/matchesProperty.mjs +1 -0
  317. package/compat/max.d.mts +1 -0
  318. package/compat/max.mjs +1 -0
  319. package/compat/maxBy.d.mts +1 -0
  320. package/compat/maxBy.mjs +1 -0
  321. package/compat/mean.d.mts +1 -0
  322. package/compat/mean.mjs +1 -0
  323. package/compat/meanBy.d.mts +1 -0
  324. package/compat/meanBy.mjs +1 -0
  325. package/compat/memoize.d.mts +1 -0
  326. package/compat/memoize.mjs +1 -0
  327. package/compat/merge.d.mts +1 -0
  328. package/compat/merge.mjs +1 -0
  329. package/compat/mergeWith.d.mts +1 -0
  330. package/compat/mergeWith.mjs +1 -0
  331. package/compat/method.d.mts +1 -0
  332. package/compat/method.mjs +1 -0
  333. package/compat/methodOf.d.mts +1 -0
  334. package/compat/methodOf.mjs +1 -0
  335. package/compat/min.d.mts +1 -0
  336. package/compat/min.mjs +1 -0
  337. package/compat/minBy.d.mts +1 -0
  338. package/compat/minBy.mjs +1 -0
  339. package/compat/multiply.d.mts +1 -0
  340. package/compat/multiply.mjs +1 -0
  341. package/compat/negate.d.mts +1 -0
  342. package/compat/negate.mjs +1 -0
  343. package/compat/noop.d.mts +1 -0
  344. package/compat/noop.mjs +1 -0
  345. package/compat/now.d.mts +1 -0
  346. package/compat/now.mjs +1 -0
  347. package/compat/nth.d.mts +1 -0
  348. package/compat/nth.mjs +1 -0
  349. package/compat/nthArg.d.mts +1 -0
  350. package/compat/nthArg.mjs +1 -0
  351. package/compat/omit.d.mts +1 -0
  352. package/compat/omit.mjs +1 -0
  353. package/compat/omitBy.d.mts +1 -0
  354. package/compat/omitBy.mjs +1 -0
  355. package/compat/once.d.mts +1 -0
  356. package/compat/once.mjs +1 -0
  357. package/compat/orderBy.d.mts +1 -0
  358. package/compat/orderBy.mjs +1 -0
  359. package/compat/over.d.mts +1 -0
  360. package/compat/over.mjs +1 -0
  361. package/compat/overArgs.d.mts +1 -0
  362. package/compat/overArgs.mjs +1 -0
  363. package/compat/overEvery.d.mts +1 -0
  364. package/compat/overEvery.mjs +1 -0
  365. package/compat/overSome.d.mts +1 -0
  366. package/compat/overSome.mjs +1 -0
  367. package/compat/pad.d.mts +1 -0
  368. package/compat/pad.mjs +1 -0
  369. package/compat/padEnd.d.mts +1 -0
  370. package/compat/padEnd.mjs +1 -0
  371. package/compat/padStart.d.mts +1 -0
  372. package/compat/padStart.mjs +1 -0
  373. package/compat/parseInt.d.mts +1 -0
  374. package/compat/parseInt.mjs +1 -0
  375. package/compat/partial.d.mts +1 -0
  376. package/compat/partial.mjs +1 -0
  377. package/compat/partialRight.d.mts +1 -0
  378. package/compat/partialRight.mjs +1 -0
  379. package/compat/partition.d.mts +1 -0
  380. package/compat/partition.mjs +1 -0
  381. package/compat/pick.d.mts +1 -0
  382. package/compat/pick.mjs +1 -0
  383. package/compat/pickBy.d.mts +1 -0
  384. package/compat/pickBy.mjs +1 -0
  385. package/compat/property.d.mts +1 -0
  386. package/compat/property.mjs +1 -0
  387. package/compat/propertyOf.d.mts +1 -0
  388. package/compat/propertyOf.mjs +1 -0
  389. package/compat/pull.d.mts +1 -0
  390. package/compat/pull.mjs +1 -0
  391. package/compat/pullAll.d.mts +1 -0
  392. package/compat/pullAll.mjs +1 -0
  393. package/compat/pullAllBy.d.mts +1 -0
  394. package/compat/pullAllBy.mjs +1 -0
  395. package/compat/pullAllWith.d.mts +1 -0
  396. package/compat/pullAllWith.mjs +1 -0
  397. package/compat/pullAt.d.mts +1 -0
  398. package/compat/pullAt.mjs +1 -0
  399. package/compat/random.d.mts +1 -0
  400. package/compat/random.mjs +1 -0
  401. package/compat/range.d.mts +1 -0
  402. package/compat/range.mjs +1 -0
  403. package/compat/rangeRight.d.mts +1 -0
  404. package/compat/rangeRight.mjs +1 -0
  405. package/compat/rearg.d.mts +1 -0
  406. package/compat/rearg.mjs +1 -0
  407. package/compat/reduce.d.mts +1 -0
  408. package/compat/reduce.mjs +1 -0
  409. package/compat/reduceRight.d.mts +1 -0
  410. package/compat/reduceRight.mjs +1 -0
  411. package/compat/reject.d.mts +1 -0
  412. package/compat/reject.mjs +1 -0
  413. package/compat/remove.d.mts +1 -0
  414. package/compat/remove.mjs +1 -0
  415. package/compat/repeat.d.mts +1 -0
  416. package/compat/repeat.mjs +1 -0
  417. package/compat/replace.d.mts +1 -0
  418. package/compat/replace.mjs +1 -0
  419. package/compat/rest.d.mts +1 -0
  420. package/compat/rest.mjs +1 -0
  421. package/compat/result.d.mts +1 -0
  422. package/compat/result.mjs +1 -0
  423. package/compat/reverse.d.mts +1 -0
  424. package/compat/reverse.mjs +1 -0
  425. package/compat/round.d.mts +1 -0
  426. package/compat/round.mjs +1 -0
  427. package/compat/sample.d.mts +1 -0
  428. package/compat/sample.mjs +1 -0
  429. package/compat/sampleSize.d.mts +1 -0
  430. package/compat/sampleSize.mjs +1 -0
  431. package/compat/set.d.mts +1 -0
  432. package/compat/set.mjs +1 -0
  433. package/compat/setWith.d.mts +1 -0
  434. package/compat/setWith.mjs +1 -0
  435. package/compat/shuffle.d.mts +1 -0
  436. package/compat/shuffle.mjs +1 -0
  437. package/compat/size.d.mts +1 -0
  438. package/compat/size.mjs +1 -0
  439. package/compat/slice.d.mts +1 -0
  440. package/compat/slice.mjs +1 -0
  441. package/compat/snakeCase.d.mts +1 -0
  442. package/compat/snakeCase.mjs +1 -0
  443. package/compat/some.d.mts +1 -0
  444. package/compat/some.mjs +1 -0
  445. package/compat/sortBy.d.mts +1 -0
  446. package/compat/sortBy.mjs +1 -0
  447. package/compat/sortedIndex.d.mts +1 -0
  448. package/compat/sortedIndex.mjs +1 -0
  449. package/compat/sortedIndexBy.d.mts +1 -0
  450. package/compat/sortedIndexBy.mjs +1 -0
  451. package/compat/sortedIndexOf.d.mts +1 -0
  452. package/compat/sortedIndexOf.mjs +1 -0
  453. package/compat/sortedLastIndex.d.mts +1 -0
  454. package/compat/sortedLastIndex.mjs +1 -0
  455. package/compat/sortedLastIndexBy.d.mts +1 -0
  456. package/compat/sortedLastIndexBy.mjs +1 -0
  457. package/compat/sortedLastIndexOf.d.mts +1 -0
  458. package/compat/sortedLastIndexOf.mjs +1 -0
  459. package/compat/split.d.mts +1 -0
  460. package/compat/split.mjs +1 -0
  461. package/compat/spread.d.mts +1 -0
  462. package/compat/spread.mjs +1 -0
  463. package/compat/startCase.d.mts +1 -0
  464. package/compat/startCase.mjs +1 -0
  465. package/compat/startsWith.d.mts +1 -0
  466. package/compat/startsWith.mjs +1 -0
  467. package/compat/stubArray.d.mts +1 -0
  468. package/compat/stubArray.mjs +1 -0
  469. package/compat/stubFalse.d.mts +1 -0
  470. package/compat/stubFalse.mjs +1 -0
  471. package/compat/stubObject.d.mts +1 -0
  472. package/compat/stubObject.mjs +1 -0
  473. package/compat/stubString.d.mts +1 -0
  474. package/compat/stubString.mjs +1 -0
  475. package/compat/stubTrue.d.mts +1 -0
  476. package/compat/stubTrue.mjs +1 -0
  477. package/compat/subtract.d.mts +1 -0
  478. package/compat/subtract.mjs +1 -0
  479. package/compat/sum.d.mts +1 -0
  480. package/compat/sum.mjs +1 -0
  481. package/compat/sumBy.d.mts +1 -0
  482. package/compat/sumBy.mjs +1 -0
  483. package/compat/tail.d.mts +1 -0
  484. package/compat/tail.mjs +1 -0
  485. package/compat/take.d.mts +1 -0
  486. package/compat/take.mjs +1 -0
  487. package/compat/takeRight.d.mts +1 -0
  488. package/compat/takeRight.mjs +1 -0
  489. package/compat/takeRightWhile.d.mts +1 -0
  490. package/compat/takeRightWhile.mjs +1 -0
  491. package/compat/takeWhile.d.mts +1 -0
  492. package/compat/takeWhile.mjs +1 -0
  493. package/compat/template.d.mts +1 -0
  494. package/compat/template.mjs +1 -0
  495. package/compat/templateSettings.d.mts +1 -0
  496. package/compat/templateSettings.mjs +1 -0
  497. package/compat/throttle.d.mts +1 -0
  498. package/compat/throttle.mjs +1 -0
  499. package/compat/times.d.mts +1 -0
  500. package/compat/times.mjs +1 -0
  501. package/compat/toArray.d.mts +1 -0
  502. package/compat/toArray.mjs +1 -0
  503. package/compat/toDefaulted.d.mts +1 -0
  504. package/compat/toDefaulted.mjs +1 -0
  505. package/compat/toFinite.d.mts +1 -0
  506. package/compat/toFinite.mjs +1 -0
  507. package/compat/toInteger.d.mts +1 -0
  508. package/compat/toInteger.mjs +1 -0
  509. package/compat/toLength.d.mts +1 -0
  510. package/compat/toLength.mjs +1 -0
  511. package/compat/toLower.d.mts +1 -0
  512. package/compat/toLower.mjs +1 -0
  513. package/compat/toNumber.d.mts +1 -0
  514. package/compat/toNumber.mjs +1 -0
  515. package/compat/toPairs.d.mts +1 -0
  516. package/compat/toPairs.mjs +1 -0
  517. package/compat/toPairsIn.d.mts +1 -0
  518. package/compat/toPairsIn.mjs +1 -0
  519. package/compat/toPath.d.mts +1 -0
  520. package/compat/toPath.mjs +1 -0
  521. package/compat/toPlainObject.d.mts +1 -0
  522. package/compat/toPlainObject.mjs +1 -0
  523. package/compat/toSafeInteger.d.mts +1 -0
  524. package/compat/toSafeInteger.mjs +1 -0
  525. package/compat/toString.d.mts +1 -0
  526. package/compat/toString.mjs +1 -0
  527. package/compat/toUpper.d.mts +1 -0
  528. package/compat/toUpper.mjs +1 -0
  529. package/compat/transform.d.mts +1 -0
  530. package/compat/transform.mjs +1 -0
  531. package/compat/trim.d.mts +1 -0
  532. package/compat/trim.mjs +1 -0
  533. package/compat/trimEnd.d.mts +1 -0
  534. package/compat/trimEnd.mjs +1 -0
  535. package/compat/trimStart.d.mts +1 -0
  536. package/compat/trimStart.mjs +1 -0
  537. package/compat/truncate.d.mts +1 -0
  538. package/compat/truncate.mjs +1 -0
  539. package/compat/unary.d.mts +1 -0
  540. package/compat/unary.mjs +1 -0
  541. package/compat/unescape.d.mts +1 -0
  542. package/compat/unescape.mjs +1 -0
  543. package/compat/union.d.mts +1 -0
  544. package/compat/union.mjs +1 -0
  545. package/compat/unionBy.d.mts +1 -0
  546. package/compat/unionBy.mjs +1 -0
  547. package/compat/unionWith.d.mts +1 -0
  548. package/compat/unionWith.mjs +1 -0
  549. package/compat/uniq.d.mts +1 -0
  550. package/compat/uniq.mjs +1 -0
  551. package/compat/uniqBy.d.mts +1 -0
  552. package/compat/uniqBy.mjs +1 -0
  553. package/compat/uniqWith.d.mts +1 -0
  554. package/compat/uniqWith.mjs +1 -0
  555. package/compat/uniqueId.d.mts +1 -0
  556. package/compat/uniqueId.mjs +1 -0
  557. package/compat/unset.d.mts +1 -0
  558. package/compat/unset.mjs +1 -0
  559. package/compat/unzip.d.mts +1 -0
  560. package/compat/unzip.mjs +1 -0
  561. package/compat/unzipWith.d.mts +1 -0
  562. package/compat/unzipWith.mjs +1 -0
  563. package/compat/update.d.mts +1 -0
  564. package/compat/update.mjs +1 -0
  565. package/compat/updateWith.d.mts +1 -0
  566. package/compat/updateWith.mjs +1 -0
  567. package/compat/upperCase.d.mts +1 -0
  568. package/compat/upperCase.mjs +1 -0
  569. package/compat/upperFirst.d.mts +1 -0
  570. package/compat/upperFirst.mjs +1 -0
  571. package/compat/values.d.mts +1 -0
  572. package/compat/values.mjs +1 -0
  573. package/compat/valuesIn.d.mts +1 -0
  574. package/compat/valuesIn.mjs +1 -0
  575. package/compat/without.d.mts +1 -0
  576. package/compat/without.mjs +1 -0
  577. package/compat/words.d.mts +1 -0
  578. package/compat/words.mjs +1 -0
  579. package/compat/wrap.d.mts +1 -0
  580. package/compat/wrap.mjs +1 -0
  581. package/compat/xor.d.mts +1 -0
  582. package/compat/xor.mjs +1 -0
  583. package/compat/xorBy.d.mts +1 -0
  584. package/compat/xorBy.mjs +1 -0
  585. package/compat/xorWith.d.mts +1 -0
  586. package/compat/xorWith.mjs +1 -0
  587. package/compat/zip.d.mts +1 -0
  588. package/compat/zip.mjs +1 -0
  589. package/compat/zipObject.d.mts +1 -0
  590. package/compat/zipObject.mjs +1 -0
  591. package/compat/zipObjectDeep.d.mts +1 -0
  592. package/compat/zipObjectDeep.mjs +1 -0
  593. package/compat/zipWith.d.mts +1 -0
  594. package/compat/zipWith.mjs +1 -0
  595. package/dist/browser.global.js +1 -1
  596. package/dist/compat/util/toLength.d.mts +2 -1
  597. package/dist/compat/util/toLength.d.ts +2 -1
  598. package/dist/compat/util/toLength.js +4 -3
  599. package/dist/compat/util/toLength.mjs +4 -2
  600. package/package.json +11 -3
@@ -0,0 +1 @@
1
+ export { times as default } from '../dist/compat/util/times.mjs';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -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';
@@ -0,0 +1 @@
1
+ export { wrap as default } from '../dist/compat/function/wrap.mjs';
@@ -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';
@@ -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';
@@ -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';
@@ -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(Math.floor(Number(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});
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 a number and floors it 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`.
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 a number and floors it 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`.
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 a number and floors it 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`.
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
- const length = Math.floor(Number(value));
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 a number and floors it 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`.
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(Math.floor(Number(value)), 0, MAX_ARRAY_LENGTH);
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.1832+224db746",
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
- "default": {
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
- "default": {
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
  }