es-toolkit 1.49.0 → 1.50.0-dev.1977

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 (186) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/array/partition.d.mts +5 -4
  3. package/dist/array/partition.d.ts +5 -4
  4. package/dist/array/unzipWith.js +1 -1
  5. package/dist/array/unzipWith.mjs +1 -1
  6. package/dist/browser.global.js +3 -3
  7. package/dist/compat/_internal/ListIterateeCustom.d.mts +3 -2
  8. package/dist/compat/_internal/ListIterateeCustom.d.ts +3 -2
  9. package/dist/compat/_internal/assignValue.js +2 -3
  10. package/dist/compat/_internal/assignValue.mjs +2 -3
  11. package/dist/compat/_internal/createPadding.js +14 -0
  12. package/dist/compat/_internal/createPadding.mjs +13 -0
  13. package/dist/compat/_internal/isDeepKey.js +14 -1
  14. package/dist/compat/_internal/isDeepKey.mjs +14 -1
  15. package/dist/compat/_internal/isIterateeCall.js +2 -3
  16. package/dist/compat/_internal/isIterateeCall.mjs +2 -3
  17. package/dist/compat/_internal/regexMultiByte.js +11 -0
  18. package/dist/compat/_internal/regexMultiByte.mjs +11 -0
  19. package/dist/compat/array/every.js +5 -24
  20. package/dist/compat/array/every.mjs +5 -24
  21. package/dist/compat/array/filter.d.mts +7 -3
  22. package/dist/compat/array/filter.d.ts +7 -3
  23. package/dist/compat/array/filter.js +11 -11
  24. package/dist/compat/array/filter.mjs +11 -11
  25. package/dist/compat/array/find.d.mts +10 -6
  26. package/dist/compat/array/find.d.ts +10 -6
  27. package/dist/compat/array/find.js +1 -1
  28. package/dist/compat/array/find.mjs +1 -1
  29. package/dist/compat/array/findIndex.d.mts +0 -1
  30. package/dist/compat/array/findIndex.d.ts +0 -1
  31. package/dist/compat/array/findIndex.js +2 -1
  32. package/dist/compat/array/findIndex.mjs +2 -1
  33. package/dist/compat/array/findLast.d.mts +1 -1
  34. package/dist/compat/array/findLast.d.ts +1 -1
  35. package/dist/compat/array/findLast.js +12 -12
  36. package/dist/compat/array/findLast.mjs +12 -12
  37. package/dist/compat/array/findLastIndex.js +1 -0
  38. package/dist/compat/array/findLastIndex.mjs +1 -0
  39. package/dist/compat/array/flatMap.js +3 -2
  40. package/dist/compat/array/flatMap.mjs +3 -2
  41. package/dist/compat/array/flatMapDepth.js +2 -2
  42. package/dist/compat/array/flatMapDepth.mjs +2 -2
  43. package/dist/compat/array/flatten.d.mts +4 -5
  44. package/dist/compat/array/flatten.d.ts +4 -5
  45. package/dist/compat/array/flatten.js +14 -15
  46. package/dist/compat/array/flatten.mjs +14 -15
  47. package/dist/compat/array/flattenDeep.d.mts +1 -1
  48. package/dist/compat/array/flattenDeep.d.ts +1 -1
  49. package/dist/compat/array/flattenDeep.js +2 -2
  50. package/dist/compat/array/flattenDeep.mjs +2 -2
  51. package/dist/compat/array/flattenDepth.js +18 -2
  52. package/dist/compat/array/flattenDepth.mjs +18 -2
  53. package/dist/compat/array/groupBy.js +5 -4
  54. package/dist/compat/array/groupBy.mjs +4 -3
  55. package/dist/compat/array/includes.js +8 -3
  56. package/dist/compat/array/includes.mjs +8 -3
  57. package/dist/compat/array/indexOf.js +2 -1
  58. package/dist/compat/array/indexOf.mjs +2 -1
  59. package/dist/compat/array/intersectionBy.js +12 -5
  60. package/dist/compat/array/intersectionBy.mjs +12 -5
  61. package/dist/compat/array/intersectionWith.js +2 -3
  62. package/dist/compat/array/intersectionWith.mjs +2 -3
  63. package/dist/compat/array/invokeMap.js +3 -7
  64. package/dist/compat/array/invokeMap.mjs +3 -4
  65. package/dist/compat/array/lastIndexOf.js +3 -2
  66. package/dist/compat/array/lastIndexOf.mjs +3 -2
  67. package/dist/compat/array/nth.js +2 -2
  68. package/dist/compat/array/nth.mjs +2 -2
  69. package/dist/compat/array/pullAllWith.js +2 -3
  70. package/dist/compat/array/pullAllWith.mjs +2 -3
  71. package/dist/compat/array/size.js +2 -0
  72. package/dist/compat/array/size.mjs +2 -0
  73. package/dist/compat/array/sortedIndexOf.js +2 -3
  74. package/dist/compat/array/sortedIndexOf.mjs +2 -3
  75. package/dist/compat/array/sortedLastIndexOf.js +2 -3
  76. package/dist/compat/array/sortedLastIndexOf.mjs +2 -3
  77. package/dist/compat/compat.d.mts +4 -3
  78. package/dist/compat/compat.d.ts +4 -3
  79. package/dist/compat/compat.js +10 -11
  80. package/dist/compat/compat.mjs +10 -11
  81. package/dist/compat/index.d.mts +4 -3
  82. package/dist/compat/index.d.ts +4 -3
  83. package/dist/compat/index.js +10 -9
  84. package/dist/compat/index.mjs +10 -9
  85. package/dist/compat/math/inRange.d.mts +5 -2
  86. package/dist/compat/math/inRange.d.ts +5 -2
  87. package/dist/compat/math/inRange.js +14 -11
  88. package/dist/compat/math/inRange.mjs +14 -11
  89. package/dist/compat/math/maxBy.d.mts +1 -1
  90. package/dist/compat/math/maxBy.d.ts +1 -1
  91. package/dist/compat/math/maxBy.js +18 -4
  92. package/dist/compat/math/maxBy.mjs +18 -4
  93. package/dist/compat/math/minBy.d.mts +1 -1
  94. package/dist/compat/math/minBy.d.ts +1 -1
  95. package/dist/compat/math/minBy.js +18 -4
  96. package/dist/compat/math/minBy.mjs +18 -4
  97. package/dist/compat/object/assign.js +2 -3
  98. package/dist/compat/object/assign.mjs +2 -3
  99. package/dist/compat/object/assignIn.js +2 -3
  100. package/dist/compat/object/assignIn.mjs +2 -3
  101. package/dist/compat/object/assignInWith.js +2 -3
  102. package/dist/compat/object/assignInWith.mjs +2 -3
  103. package/dist/compat/object/assignWith.js +2 -3
  104. package/dist/compat/object/assignWith.mjs +2 -3
  105. package/dist/compat/object/create.js +1 -1
  106. package/dist/compat/object/create.mjs +1 -1
  107. package/dist/compat/object/defaults.js +2 -3
  108. package/dist/compat/object/defaults.mjs +2 -3
  109. package/dist/compat/object/has.js +1 -1
  110. package/dist/compat/object/has.mjs +1 -1
  111. package/dist/compat/object/hasIn.js +1 -1
  112. package/dist/compat/object/hasIn.mjs +1 -1
  113. package/dist/compat/object/unset.js +1 -1
  114. package/dist/compat/object/unset.mjs +1 -1
  115. package/dist/compat/object/values.js +5 -1
  116. package/dist/compat/object/values.mjs +5 -1
  117. package/dist/compat/predicate/isMatchWith.js +4 -5
  118. package/dist/compat/predicate/isMatchWith.mjs +4 -5
  119. package/dist/compat/string/camelCase.js +6 -2
  120. package/dist/compat/string/camelCase.mjs +6 -2
  121. package/dist/compat/string/kebabCase.js +2 -2
  122. package/dist/compat/string/kebabCase.mjs +2 -2
  123. package/dist/compat/string/lowerCase.js +2 -2
  124. package/dist/compat/string/lowerCase.mjs +2 -2
  125. package/dist/compat/string/pad.js +10 -3
  126. package/dist/compat/string/pad.mjs +10 -3
  127. package/dist/compat/string/padEnd.js +7 -1
  128. package/dist/compat/string/padEnd.mjs +7 -1
  129. package/dist/compat/string/padStart.js +7 -1
  130. package/dist/compat/string/padStart.mjs +7 -1
  131. package/dist/compat/string/snakeCase.js +2 -2
  132. package/dist/compat/string/snakeCase.mjs +2 -2
  133. package/dist/compat/string/startCase.js +1 -1
  134. package/dist/compat/string/startCase.mjs +1 -1
  135. package/dist/compat/string/template.d.mts +1 -1
  136. package/dist/compat/string/template.d.ts +1 -1
  137. package/dist/compat/string/templateSettings.d.mts +18 -1
  138. package/dist/compat/string/templateSettings.d.ts +18 -1
  139. package/dist/compat/string/templateSettings.js +4 -1
  140. package/dist/compat/string/templateSettings.mjs +5 -1
  141. package/dist/compat/string/truncate.js +2 -9
  142. package/dist/compat/string/truncate.mjs +1 -8
  143. package/dist/compat/string/upperCase.js +2 -2
  144. package/dist/compat/string/upperCase.mjs +2 -2
  145. package/dist/compat/util/eq.d.mts +17 -1
  146. package/dist/compat/util/eq.d.ts +17 -1
  147. package/dist/compat/util/eq.js +19 -1
  148. package/dist/compat/util/eq.mjs +19 -1
  149. package/dist/compat/util/toArray.js +2 -1
  150. package/dist/compat/util/toArray.mjs +2 -1
  151. package/dist/fp/flow.d.mts +213 -0
  152. package/dist/fp/flow.d.ts +213 -0
  153. package/dist/fp/flow.js +50 -0
  154. package/dist/fp/flow.mjs +50 -0
  155. package/dist/fp/index.d.mts +2 -1
  156. package/dist/fp/index.d.ts +2 -1
  157. package/dist/fp/index.js +3 -1
  158. package/dist/fp/index.mjs +3 -2
  159. package/dist/fp/pipe.js +8 -12
  160. package/dist/fp/pipe.mjs +8 -12
  161. package/dist/map/hasValue.js +2 -2
  162. package/dist/map/hasValue.mjs +2 -2
  163. package/dist/predicate/isEqualWith.js +2 -3
  164. package/dist/predicate/isEqualWith.mjs +2 -3
  165. package/dist/string/deburr.js +1 -1
  166. package/dist/string/deburr.mjs +1 -1
  167. package/dist/types/DeepPartial.d.mts +21 -0
  168. package/dist/types/DeepPartial.d.ts +21 -0
  169. package/dist/types/DeepReadonly.d.mts +22 -0
  170. package/dist/types/DeepReadonly.d.ts +22 -0
  171. package/dist/types/NonEmptyArray.d.mts +14 -0
  172. package/dist/types/NonEmptyArray.d.ts +14 -0
  173. package/dist/types/Simplify.d.mts +18 -0
  174. package/dist/types/Simplify.d.ts +18 -0
  175. package/dist/types/ValueOf.d.mts +14 -0
  176. package/dist/types/ValueOf.d.ts +14 -0
  177. package/dist/types/Writable.d.mts +15 -0
  178. package/dist/types/Writable.d.ts +15 -0
  179. package/dist/types/index.d.mts +7 -0
  180. package/dist/types/index.d.ts +7 -0
  181. package/package.json +23 -7
  182. package/types.d.ts +1 -0
  183. package/dist/_internal/isEqualsSameValueZero.d.mts +0 -17
  184. package/dist/_internal/isEqualsSameValueZero.d.ts +0 -17
  185. package/dist/_internal/isEqualsSameValueZero.js +0 -19
  186. package/dist/_internal/isEqualsSameValueZero.mjs +0 -19
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
4
4
  });
5
5
  const require_isArray = require("./predicate/isArray.js");
6
6
  const require_isPlainObject = require("./predicate/isPlainObject.js");
7
- const require_isEqualsSameValueZero = require("../_internal/isEqualsSameValueZero.js");
7
+ const require_eq = require("./util/eq.js");
8
8
  const require_isEqual = require("../predicate/isEqual.js");
9
9
  const require_castArray = require("./array/castArray.js");
10
10
  const require_isArrayLike = require("./predicate/isArrayLike.js");
@@ -52,12 +52,12 @@ const require_findIndex = require("./array/findIndex.js");
52
52
  const require_findLast = require("./array/findLast.js");
53
53
  const require_findLastIndex = require("./array/findLastIndex.js");
54
54
  const require_head = require("./array/head.js");
55
- const require_flatten = require("./array/flatten.js");
56
55
  const require_flattenDepth = require("./array/flattenDepth.js");
57
56
  const require_map = require("./array/map.js");
58
57
  const require_flatMap = require("./array/flatMap.js");
59
58
  const require_flatMapDepth = require("./array/flatMapDepth.js");
60
59
  const require_flatMapDeep = require("./array/flatMapDeep.js");
60
+ const require_flatten = require("./array/flatten.js");
61
61
  const require_flattenDeep = require("./array/flattenDeep.js");
62
62
  const require_groupBy = require("./array/groupBy.js");
63
63
  const require_includes = require("./array/includes.js");
@@ -90,8 +90,12 @@ const require_reverse = require("./array/reverse.js");
90
90
  const require_sample = require("./array/sample.js");
91
91
  const require_clamp = require("./math/clamp.js");
92
92
  const require_isMap = require("./predicate/isMap.js");
93
+ const require_isSet = require("./predicate/isSet.js");
93
94
  const require_toArray = require("./util/toArray.js");
94
95
  const require_sampleSize = require("./array/sampleSize.js");
96
+ const require_isTypedArray = require("./predicate/isTypedArray.js");
97
+ const require_times = require("./util/times.js");
98
+ const require_keys = require("./object/keys.js");
95
99
  const require_values = require("./object/values.js");
96
100
  const require_isNil = require("./predicate/isNil.js");
97
101
  const require_shuffle = require("./array/shuffle.js");
@@ -176,9 +180,6 @@ const require_rangeRight = require("./math/rangeRight.js");
176
180
  const require_round = require("./math/round.js");
177
181
  const require_subtract = require("./math/subtract.js");
178
182
  const require_noop = require("./function/noop.js");
179
- const require_isTypedArray = require("./predicate/isTypedArray.js");
180
- const require_times = require("./util/times.js");
181
- const require_keys = require("./object/keys.js");
182
183
  const require_assign = require("./object/assign.js");
183
184
  const require_keysIn = require("./object/keysIn.js");
184
185
  const require_assignIn = require("./object/assignIn.js");
@@ -237,12 +238,12 @@ const require_isFinite = require("./predicate/isFinite.js");
237
238
  const require_isInteger = require("./predicate/isInteger.js");
238
239
  const require_isRegExp = require("./predicate/isRegExp.js");
239
240
  const require_isSafeInteger = require("./predicate/isSafeInteger.js");
240
- const require_isSet = require("./predicate/isSet.js");
241
241
  const require_isWeakMap = require("./predicate/isWeakMap.js");
242
242
  const require_isWeakSet = require("./predicate/isWeakSet.js");
243
243
  const require_capitalize = require("./string/capitalize.js");
244
244
  const require_bindAll = require("./util/bindAll.js");
245
245
  const require_deburr = require("./string/deburr.js");
246
+ const require_words = require("./string/words.js");
246
247
  const require_camelCase = require("./string/camelCase.js");
247
248
  const require_endsWith = require("./string/endsWith.js");
248
249
  const require_escape = require("./string/escape.js");
@@ -260,6 +261,7 @@ const require_split = require("./string/split.js");
260
261
  const require_startCase = require("./string/startCase.js");
261
262
  const require_startsWith = require("./string/startsWith.js");
262
263
  const require_template = require("./string/template.js");
264
+ const require_templateSettings = require("./string/templateSettings.js");
263
265
  const require_toLower = require("./string/toLower.js");
264
266
  const require_toUpper = require("./string/toUpper.js");
265
267
  const require_trim = require("./string/trim.js");
@@ -269,7 +271,6 @@ const require_truncate = require("./string/truncate.js");
269
271
  const require_unescape = require("./string/unescape.js");
270
272
  const require_upperCase = require("./string/upperCase.js");
271
273
  const require_upperFirst = require("./string/upperFirst.js");
272
- const require_words = require("./string/words.js");
273
274
  const require_cond = require("./util/cond.js");
274
275
  const require_constant = require("./util/constant.js");
275
276
  const require_defaultTo = require("./util/defaultTo.js");
@@ -347,7 +348,7 @@ exports.dropWhile = require_dropWhile.dropWhile;
347
348
  exports.each = require_forEach.forEach;
348
349
  exports.eachRight = require_forEachRight.forEachRight;
349
350
  exports.endsWith = require_endsWith.endsWith;
350
- exports.eq = require_isEqualsSameValueZero.isEqualsSameValueZero;
351
+ exports.eq = require_eq.eq;
351
352
  exports.escape = require_escape.escape;
352
353
  exports.escapeRegExp = require_escapeRegExp.escapeRegExp;
353
354
  exports.every = require_every.every;
@@ -543,7 +544,7 @@ exports.takeRight = require_takeRight.takeRight;
543
544
  exports.takeRightWhile = require_takeRightWhile.takeRightWhile;
544
545
  exports.takeWhile = require_takeWhile.takeWhile;
545
546
  exports.template = require_template.template;
546
- exports.templateSettings = require_template.templateSettings;
547
+ exports.templateSettings = require_templateSettings.templateSettings;
547
548
  exports.throttle = require_throttle.throttle;
548
549
  exports.times = require_times.times;
549
550
  exports.toArray = require_toArray.toArray;
@@ -1,6 +1,6 @@
1
1
  import { isArray } from "./predicate/isArray.mjs";
2
2
  import { isPlainObject } from "./predicate/isPlainObject.mjs";
3
- import { isEqualsSameValueZero } from "../_internal/isEqualsSameValueZero.mjs";
3
+ import { eq } from "./util/eq.mjs";
4
4
  import { isEqual } from "../predicate/isEqual.mjs";
5
5
  import { castArray } from "./array/castArray.mjs";
6
6
  import { isArrayLike } from "./predicate/isArrayLike.mjs";
@@ -48,12 +48,12 @@ import { findIndex } from "./array/findIndex.mjs";
48
48
  import { findLast } from "./array/findLast.mjs";
49
49
  import { findLastIndex } from "./array/findLastIndex.mjs";
50
50
  import { head } from "./array/head.mjs";
51
- import { flatten } from "./array/flatten.mjs";
52
51
  import { flattenDepth } from "./array/flattenDepth.mjs";
53
52
  import { map } from "./array/map.mjs";
54
53
  import { flatMap } from "./array/flatMap.mjs";
55
54
  import { flatMapDepth } from "./array/flatMapDepth.mjs";
56
55
  import { flatMapDeep } from "./array/flatMapDeep.mjs";
56
+ import { flatten } from "./array/flatten.mjs";
57
57
  import { flattenDeep } from "./array/flattenDeep.mjs";
58
58
  import { groupBy } from "./array/groupBy.mjs";
59
59
  import { includes } from "./array/includes.mjs";
@@ -86,8 +86,12 @@ import { reverse } from "./array/reverse.mjs";
86
86
  import { sample } from "./array/sample.mjs";
87
87
  import { clamp } from "./math/clamp.mjs";
88
88
  import { isMap } from "./predicate/isMap.mjs";
89
+ import { isSet } from "./predicate/isSet.mjs";
89
90
  import { toArray } from "./util/toArray.mjs";
90
91
  import { sampleSize } from "./array/sampleSize.mjs";
92
+ import { isTypedArray } from "./predicate/isTypedArray.mjs";
93
+ import { times } from "./util/times.mjs";
94
+ import { keys } from "./object/keys.mjs";
91
95
  import { values } from "./object/values.mjs";
92
96
  import { isNil } from "./predicate/isNil.mjs";
93
97
  import { shuffle } from "./array/shuffle.mjs";
@@ -172,9 +176,6 @@ import { rangeRight } from "./math/rangeRight.mjs";
172
176
  import { round } from "./math/round.mjs";
173
177
  import { subtract } from "./math/subtract.mjs";
174
178
  import { noop } from "./function/noop.mjs";
175
- import { isTypedArray } from "./predicate/isTypedArray.mjs";
176
- import { times } from "./util/times.mjs";
177
- import { keys } from "./object/keys.mjs";
178
179
  import { assign } from "./object/assign.mjs";
179
180
  import { keysIn } from "./object/keysIn.mjs";
180
181
  import { assignIn } from "./object/assignIn.mjs";
@@ -233,12 +234,12 @@ import { isFinite } from "./predicate/isFinite.mjs";
233
234
  import { isInteger } from "./predicate/isInteger.mjs";
234
235
  import { isRegExp } from "./predicate/isRegExp.mjs";
235
236
  import { isSafeInteger } from "./predicate/isSafeInteger.mjs";
236
- import { isSet } from "./predicate/isSet.mjs";
237
237
  import { isWeakMap } from "./predicate/isWeakMap.mjs";
238
238
  import { isWeakSet } from "./predicate/isWeakSet.mjs";
239
239
  import { capitalize } from "./string/capitalize.mjs";
240
240
  import { bindAll } from "./util/bindAll.mjs";
241
241
  import { deburr } from "./string/deburr.mjs";
242
+ import { words } from "./string/words.mjs";
242
243
  import { camelCase } from "./string/camelCase.mjs";
243
244
  import { endsWith } from "./string/endsWith.mjs";
244
245
  import { escape } from "./string/escape.mjs";
@@ -255,7 +256,8 @@ import { snakeCase } from "./string/snakeCase.mjs";
255
256
  import { split } from "./string/split.mjs";
256
257
  import { startCase } from "./string/startCase.mjs";
257
258
  import { startsWith } from "./string/startsWith.mjs";
258
- import { template, templateSettings } from "./string/template.mjs";
259
+ import { template } from "./string/template.mjs";
260
+ import { templateSettings } from "./string/templateSettings.mjs";
259
261
  import { toLower } from "./string/toLower.mjs";
260
262
  import { toUpper } from "./string/toUpper.mjs";
261
263
  import { trim } from "./string/trim.mjs";
@@ -265,7 +267,6 @@ import { truncate } from "./string/truncate.mjs";
265
267
  import { unescape } from "./string/unescape.mjs";
266
268
  import { upperCase } from "./string/upperCase.mjs";
267
269
  import { upperFirst } from "./string/upperFirst.mjs";
268
- import { words } from "./string/words.mjs";
269
270
  import { cond } from "./util/cond.mjs";
270
271
  import { constant } from "./util/constant.mjs";
271
272
  import { defaultTo } from "./util/defaultTo.mjs";
@@ -291,4 +292,4 @@ import { toSafeInteger } from "./util/toSafeInteger.mjs";
291
292
  import { uniqueId } from "./util/uniqueId.mjs";
292
293
  import "./compat.mjs";
293
294
  import { toolkit } from "./toolkit.mjs";
294
- export { add, after, ary, assign, assignIn, assignInWith, assignWith, at, attempt, before, bind, bindAll, bindKey, camelCase, capitalize, castArray, ceil, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, concat, cond, conforms, conformsTo, constant, countBy, create, curry, curryRight, debounce, deburr, toolkit as default, defaultTo, defaults, defaultsDeep, defer, delay, difference, differenceBy, differenceWith, divide, drop, dropRight, dropRightWhile, dropWhile, forEach as each, forEachRight as eachRight, endsWith, isEqualsSameValueZero as eq, escape, escapeRegExp, every, assignIn as extend, assignInWith as extendWith, fill, filter, find, findIndex, findKey, findLast, findLastIndex, findLastKey, head as first, flatMap, flatMapDeep, flatMapDepth, flatten, flattenDeep, flattenDepth, flip, floor, flow, flowRight, forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, fromPairs, functions, functionsIn, get, groupBy, gt, gte, has, hasIn, head, identity, inRange, includes, indexOf, initial, intersection, intersectionBy, intersectionWith, invert, invertBy, invoke, invokeMap, isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBoolean, isBuffer, isDate, isElement, isEmpty, isEqual, isEqualWith, isError, isFinite, isFunction, isInteger, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNumber, isObject, isObjectLike, isPlainObject, isRegExp, isSafeInteger, isSet, isString, isSymbol, isTypedArray, isUndefined, isWeakMap, isWeakSet, iteratee, join, kebabCase, keyBy, keys, keysIn, last, lastIndexOf, lowerCase, lowerFirst, lt, lte, map, mapKeys, mapValues, matches, matchesProperty, max, maxBy, mean, meanBy, memoize, merge, mergeWith, method, methodOf, min, minBy, multiply, negate, noop, now, nth, nthArg, omit, omitBy, once, orderBy, over, overArgs, overEvery, overSome, pad, padEnd, padStart, parseInt, partial, partialRight, partition, pick, pickBy, property, propertyOf, pull, pullAll, pullAllBy, pullAllWith, pullAt, random, range, rangeRight, rearg, reduce, reduceRight, reject, remove, repeat, replace, rest, result, reverse, round, sample, sampleSize, set, setWith, shuffle, size, slice, snakeCase, some, sortBy, sortedIndex, sortedIndexBy, sortedIndexOf, sortedLastIndex, sortedLastIndexBy, sortedLastIndexOf, split, spread, startCase, startsWith, stubArray, stubFalse, stubObject, stubString, stubTrue, subtract, sum, sumBy, tail, take, takeRight, takeRightWhile, takeWhile, template, templateSettings, throttle, times, toArray, toDefaulted, toFinite, toInteger, toLength, toLower, toNumber, toPairs, toPairsIn, toPath, toPlainObject, toSafeInteger, toString, toUpper, transform, trim, trimEnd, trimStart, truncate, unary, unescape, union, unionBy, unionWith, uniq, uniqBy, uniqWith, uniqueId, unset, unzip, unzipWith, update, updateWith, upperCase, upperFirst, values, valuesIn, without, words, wrap, xor, xorBy, xorWith, zip, zipObject, zipObjectDeep, zipWith };
295
+ export { add, after, ary, assign, assignIn, assignInWith, assignWith, at, attempt, before, bind, bindAll, bindKey, camelCase, capitalize, castArray, ceil, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, concat, cond, conforms, conformsTo, constant, countBy, create, curry, curryRight, debounce, deburr, toolkit as default, defaultTo, defaults, defaultsDeep, defer, delay, difference, differenceBy, differenceWith, divide, drop, dropRight, dropRightWhile, dropWhile, forEach as each, forEachRight as eachRight, endsWith, eq, escape, escapeRegExp, every, assignIn as extend, assignInWith as extendWith, fill, filter, find, findIndex, findKey, findLast, findLastIndex, findLastKey, head as first, flatMap, flatMapDeep, flatMapDepth, flatten, flattenDeep, flattenDepth, flip, floor, flow, flowRight, forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, fromPairs, functions, functionsIn, get, groupBy, gt, gte, has, hasIn, head, identity, inRange, includes, indexOf, initial, intersection, intersectionBy, intersectionWith, invert, invertBy, invoke, invokeMap, isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBoolean, isBuffer, isDate, isElement, isEmpty, isEqual, isEqualWith, isError, isFinite, isFunction, isInteger, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNumber, isObject, isObjectLike, isPlainObject, isRegExp, isSafeInteger, isSet, isString, isSymbol, isTypedArray, isUndefined, isWeakMap, isWeakSet, iteratee, join, kebabCase, keyBy, keys, keysIn, last, lastIndexOf, lowerCase, lowerFirst, lt, lte, map, mapKeys, mapValues, matches, matchesProperty, max, maxBy, mean, meanBy, memoize, merge, mergeWith, method, methodOf, min, minBy, multiply, negate, noop, now, nth, nthArg, omit, omitBy, once, orderBy, over, overArgs, overEvery, overSome, pad, padEnd, padStart, parseInt, partial, partialRight, partition, pick, pickBy, property, propertyOf, pull, pullAll, pullAllBy, pullAllWith, pullAt, random, range, rangeRight, rearg, reduce, reduceRight, reject, remove, repeat, replace, rest, result, reverse, round, sample, sampleSize, set, setWith, shuffle, size, slice, snakeCase, some, sortBy, sortedIndex, sortedIndexBy, sortedIndexOf, sortedLastIndex, sortedLastIndexBy, sortedLastIndexOf, split, spread, startCase, startsWith, stubArray, stubFalse, stubObject, stubString, stubTrue, subtract, sum, sumBy, tail, take, takeRight, takeRightWhile, takeWhile, template, templateSettings, throttle, times, toArray, toDefaulted, toFinite, toInteger, toLength, toLower, toNumber, toPairs, toPairsIn, toPath, toPlainObject, toSafeInteger, toString, toUpper, transform, trim, trimEnd, trimStart, truncate, unary, unescape, union, unionBy, unionWith, uniq, uniqBy, uniqWith, uniqueId, unset, unzip, unzipWith, update, updateWith, upperCase, upperFirst, values, valuesIn, without, words, wrap, xor, xorBy, xorWith, zip, zipObject, zipObjectDeep, zipWith };
@@ -2,16 +2,19 @@
2
2
  /**
3
3
  * Checks if the value is within a specified range.
4
4
  *
5
+ * If only `minimum` is provided, it is treated as the exclusive upper bound and the range starts at `0`.
6
+ * When the resolved bounds are out of order they are swapped, so the lower one is always inclusive
7
+ * and the higher one exclusive.
8
+ *
5
9
  * @param value The value to check.
6
10
  * @param minimum The lower bound of the range (inclusive).
7
11
  * @param maximum The upper bound of the range (exclusive).
8
12
  * @returns `true` if the value is within the specified range, otherwise `false`.
9
- * @throws {Error} Throws an error if the `minimum` is greater or equal than the `maximum`.
10
13
  *
11
14
  * @example
12
15
  * const result1 = inRange(3, 5); // result1 will be true.
13
16
  * const result2 = inRange(1, 2, 5); // result2 will be false.
14
- * const result3 = inRange(1, 5, 2); // If the minimum is greater or equal than the maximum, an error is thrown.
17
+ * const result3 = inRange(-2, -4); // result3 will be true, the range is [-4, 0).
15
18
  */
16
19
  declare function inRange(value: number, minimum: number, maximum?: number): boolean;
17
20
  //#endregion
@@ -2,16 +2,19 @@
2
2
  /**
3
3
  * Checks if the value is within a specified range.
4
4
  *
5
+ * If only `minimum` is provided, it is treated as the exclusive upper bound and the range starts at `0`.
6
+ * When the resolved bounds are out of order they are swapped, so the lower one is always inclusive
7
+ * and the higher one exclusive.
8
+ *
5
9
  * @param value The value to check.
6
10
  * @param minimum The lower bound of the range (inclusive).
7
11
  * @param maximum The upper bound of the range (exclusive).
8
12
  * @returns `true` if the value is within the specified range, otherwise `false`.
9
- * @throws {Error} Throws an error if the `minimum` is greater or equal than the `maximum`.
10
13
  *
11
14
  * @example
12
15
  * const result1 = inRange(3, 5); // result1 will be true.
13
16
  * const result2 = inRange(1, 2, 5); // result2 will be false.
14
- * const result3 = inRange(1, 5, 2); // If the minimum is greater or equal than the maximum, an error is thrown.
17
+ * const result3 = inRange(-2, -4); // result3 will be true, the range is [-4, 0).
15
18
  */
16
19
  declare function inRange(value: number, minimum: number, maximum?: number): boolean;
17
20
  //#endregion
@@ -1,28 +1,31 @@
1
- const require_inRange = require("../../math/inRange.js");
1
+ const require_toNumber = require("../util/toNumber.js");
2
+ const require_toFinite = require("../util/toFinite.js");
2
3
  //#region src/compat/math/inRange.ts
3
4
  /**
4
5
  * Checks if the value is within a specified range.
5
6
  *
7
+ * If only `minimum` is provided, it is treated as the exclusive upper bound and the range starts at `0`.
8
+ * When the resolved bounds are out of order they are swapped, so the lower one is always inclusive
9
+ * and the higher one exclusive.
10
+ *
6
11
  * @param value The value to check.
7
12
  * @param minimum The lower bound of the range (inclusive).
8
13
  * @param maximum The upper bound of the range (exclusive).
9
14
  * @returns `true` if the value is within the specified range, otherwise `false`.
10
- * @throws {Error} Throws an error if the `minimum` is greater or equal than the `maximum`.
11
15
  *
12
16
  * @example
13
17
  * const result1 = inRange(3, 5); // result1 will be true.
14
18
  * const result2 = inRange(1, 2, 5); // result2 will be false.
15
- * const result3 = inRange(1, 5, 2); // If the minimum is greater or equal than the maximum, an error is thrown.
19
+ * const result3 = inRange(-2, -4); // result3 will be true, the range is [-4, 0).
16
20
  */
17
21
  function inRange(value, minimum, maximum) {
18
- if (!minimum) minimum = 0;
19
- if (maximum != null && !maximum) maximum = 0;
20
- if (minimum != null && typeof minimum !== "number") minimum = Number(minimum);
21
- if (maximum == null && minimum === 0) return false;
22
- if (maximum != null && typeof maximum !== "number") maximum = Number(maximum);
23
- if (maximum != null && minimum > maximum) [minimum, maximum] = [maximum, minimum];
24
- if (minimum === maximum) return false;
25
- return require_inRange.inRange(value, minimum, maximum);
22
+ minimum = require_toFinite.toFinite(minimum);
23
+ if (maximum === void 0) {
24
+ maximum = minimum;
25
+ minimum = 0;
26
+ } else maximum = require_toFinite.toFinite(maximum);
27
+ value = require_toNumber.toNumber(value);
28
+ return value >= Math.min(minimum, maximum) && value < Math.max(minimum, maximum);
26
29
  }
27
30
  //#endregion
28
31
  exports.inRange = inRange;
@@ -1,28 +1,31 @@
1
- import { inRange as inRange$1 } from "../../math/inRange.mjs";
1
+ import { toNumber } from "../util/toNumber.mjs";
2
+ import { toFinite } from "../util/toFinite.mjs";
2
3
  //#region src/compat/math/inRange.ts
3
4
  /**
4
5
  * Checks if the value is within a specified range.
5
6
  *
7
+ * If only `minimum` is provided, it is treated as the exclusive upper bound and the range starts at `0`.
8
+ * When the resolved bounds are out of order they are swapped, so the lower one is always inclusive
9
+ * and the higher one exclusive.
10
+ *
6
11
  * @param value The value to check.
7
12
  * @param minimum The lower bound of the range (inclusive).
8
13
  * @param maximum The upper bound of the range (exclusive).
9
14
  * @returns `true` if the value is within the specified range, otherwise `false`.
10
- * @throws {Error} Throws an error if the `minimum` is greater or equal than the `maximum`.
11
15
  *
12
16
  * @example
13
17
  * const result1 = inRange(3, 5); // result1 will be true.
14
18
  * const result2 = inRange(1, 2, 5); // result2 will be false.
15
- * const result3 = inRange(1, 5, 2); // If the minimum is greater or equal than the maximum, an error is thrown.
19
+ * const result3 = inRange(-2, -4); // result3 will be true, the range is [-4, 0).
16
20
  */
17
21
  function inRange(value, minimum, maximum) {
18
- if (!minimum) minimum = 0;
19
- if (maximum != null && !maximum) maximum = 0;
20
- if (minimum != null && typeof minimum !== "number") minimum = Number(minimum);
21
- if (maximum == null && minimum === 0) return false;
22
- if (maximum != null && typeof maximum !== "number") maximum = Number(maximum);
23
- if (maximum != null && minimum > maximum) [minimum, maximum] = [maximum, minimum];
24
- if (minimum === maximum) return false;
25
- return inRange$1(value, minimum, maximum);
22
+ minimum = toFinite(minimum);
23
+ if (maximum === void 0) {
24
+ maximum = minimum;
25
+ minimum = 0;
26
+ } else maximum = toFinite(maximum);
27
+ value = toNumber(value);
28
+ return value >= Math.min(minimum, maximum) && value < Math.max(minimum, maximum);
26
29
  }
27
30
  //#endregion
28
31
  export { inRange };
@@ -7,7 +7,7 @@ import { ValueIteratee } from "../_internal/ValueIteratee.mjs";
7
7
  *
8
8
  * @template T - The type of elements in the array.
9
9
  * @param items The array of elements to search.
10
- * @param iteratee
10
+ * @param [iteratee=identity]
11
11
  * The criteria used to determine the maximum value.
12
12
  * - If a **function** is provided, it extracts a numeric value from each element.
13
13
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -7,7 +7,7 @@ import { ValueIteratee } from "../_internal/ValueIteratee.js";
7
7
  *
8
8
  * @template T - The type of elements in the array.
9
9
  * @param items The array of elements to search.
10
- * @param iteratee
10
+ * @param [iteratee=identity]
11
11
  * The criteria used to determine the maximum value.
12
12
  * - If a **function** is provided, it extracts a numeric value from each element.
13
13
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -1,5 +1,5 @@
1
- const require_maxBy = require("../../array/maxBy.js");
2
1
  const require_identity = require("../../function/identity.js");
2
+ const require_toArray = require("../_internal/toArray.js");
3
3
  const require_iteratee = require("../util/iteratee.js");
4
4
  //#region src/compat/math/maxBy.ts
5
5
  /**
@@ -8,7 +8,7 @@ const require_iteratee = require("../util/iteratee.js");
8
8
  *
9
9
  * @template T - The type of elements in the array.
10
10
  * @param items The array of elements to search.
11
- * @param iteratee
11
+ * @param [iteratee=identity]
12
12
  * The criteria used to determine the maximum value.
13
13
  * - If a **function** is provided, it extracts a numeric value from each element.
14
14
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -30,9 +30,23 @@ const require_iteratee = require("../util/iteratee.js");
30
30
  * maxBy([{ a: 1 }, { a: 2 }], ['a', 1]); // Returns: { a: 1 }
31
31
  * maxBy([{ a: 1 }, { a: 2 }], { a: 1 }); // Returns: { a: 1 }
32
32
  */
33
- function maxBy(items, iteratee$1) {
33
+ function maxBy(items, iteratee$1 = require_identity.identity) {
34
34
  if (items == null) return;
35
- return require_maxBy.maxBy(Array.from(items), require_iteratee.iteratee(iteratee$1 ?? require_identity.identity));
35
+ const array = require_toArray.toArray(items);
36
+ if (array.length === 0) return;
37
+ const getValue = require_iteratee.iteratee(iteratee$1);
38
+ let maxElement;
39
+ let max;
40
+ for (let i = 0; i < array.length; i++) {
41
+ const element = array[i];
42
+ const current = getValue(element, i, array);
43
+ if (Number.isNaN(current)) continue;
44
+ if (max === void 0 || current > max) {
45
+ max = current;
46
+ maxElement = element;
47
+ }
48
+ }
49
+ return maxElement;
36
50
  }
37
51
  //#endregion
38
52
  exports.maxBy = maxBy;
@@ -1,5 +1,5 @@
1
- import { maxBy as maxBy$1 } from "../../array/maxBy.mjs";
2
1
  import { identity } from "../../function/identity.mjs";
2
+ import { toArray } from "../_internal/toArray.mjs";
3
3
  import { iteratee } from "../util/iteratee.mjs";
4
4
  //#region src/compat/math/maxBy.ts
5
5
  /**
@@ -8,7 +8,7 @@ import { iteratee } from "../util/iteratee.mjs";
8
8
  *
9
9
  * @template T - The type of elements in the array.
10
10
  * @param items The array of elements to search.
11
- * @param iteratee
11
+ * @param [iteratee=identity]
12
12
  * The criteria used to determine the maximum value.
13
13
  * - If a **function** is provided, it extracts a numeric value from each element.
14
14
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -30,9 +30,23 @@ import { iteratee } from "../util/iteratee.mjs";
30
30
  * maxBy([{ a: 1 }, { a: 2 }], ['a', 1]); // Returns: { a: 1 }
31
31
  * maxBy([{ a: 1 }, { a: 2 }], { a: 1 }); // Returns: { a: 1 }
32
32
  */
33
- function maxBy(items, iteratee$1) {
33
+ function maxBy(items, iteratee$1 = identity) {
34
34
  if (items == null) return;
35
- return maxBy$1(Array.from(items), iteratee(iteratee$1 ?? identity));
35
+ const array = toArray(items);
36
+ if (array.length === 0) return;
37
+ const getValue = iteratee(iteratee$1);
38
+ let maxElement;
39
+ let max;
40
+ for (let i = 0; i < array.length; i++) {
41
+ const element = array[i];
42
+ const current = getValue(element, i, array);
43
+ if (Number.isNaN(current)) continue;
44
+ if (max === void 0 || current > max) {
45
+ max = current;
46
+ maxElement = element;
47
+ }
48
+ }
49
+ return maxElement;
36
50
  }
37
51
  //#endregion
38
52
  export { maxBy };
@@ -7,7 +7,7 @@ import { ValueIteratee } from "../_internal/ValueIteratee.mjs";
7
7
  *
8
8
  * @template T - The type of elements in the array.
9
9
  * @param items The array of elements to search.
10
- * @param iteratee
10
+ * @param [iteratee=identity]
11
11
  * The criteria used to determine the minimum value.
12
12
  * - If a **function** is provided, it extracts a numeric value from each element.
13
13
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -7,7 +7,7 @@ import { ValueIteratee } from "../_internal/ValueIteratee.js";
7
7
  *
8
8
  * @template T - The type of elements in the array.
9
9
  * @param items The array of elements to search.
10
- * @param iteratee
10
+ * @param [iteratee=identity]
11
11
  * The criteria used to determine the minimum value.
12
12
  * - If a **function** is provided, it extracts a numeric value from each element.
13
13
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -1,5 +1,5 @@
1
- const require_minBy = require("../../array/minBy.js");
2
1
  const require_identity = require("../../function/identity.js");
2
+ const require_toArray = require("../_internal/toArray.js");
3
3
  const require_iteratee = require("../util/iteratee.js");
4
4
  //#region src/compat/math/minBy.ts
5
5
  /**
@@ -8,7 +8,7 @@ const require_iteratee = require("../util/iteratee.js");
8
8
  *
9
9
  * @template T - The type of elements in the array.
10
10
  * @param items The array of elements to search.
11
- * @param iteratee
11
+ * @param [iteratee=identity]
12
12
  * The criteria used to determine the minimum value.
13
13
  * - If a **function** is provided, it extracts a numeric value from each element.
14
14
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -30,9 +30,23 @@ const require_iteratee = require("../util/iteratee.js");
30
30
  * minBy([{ a: 1 }, { a: 2 }], ['a', 1]); // Returns: { a: 2 }
31
31
  * minBy([{ a: 1 }, { a: 2 }], { a: 1 }); // Returns: { a: 2 }
32
32
  */
33
- function minBy(items, iteratee$1) {
33
+ function minBy(items, iteratee$1 = require_identity.identity) {
34
34
  if (items == null) return;
35
- return require_minBy.minBy(Array.from(items), require_iteratee.iteratee(iteratee$1 ?? require_identity.identity));
35
+ const array = require_toArray.toArray(items);
36
+ if (array.length === 0) return;
37
+ const getValue = require_iteratee.iteratee(iteratee$1);
38
+ let minElement;
39
+ let min;
40
+ for (let i = 0; i < array.length; i++) {
41
+ const element = array[i];
42
+ const current = getValue(element, i, array);
43
+ if (Number.isNaN(current)) continue;
44
+ if (min === void 0 || current < min) {
45
+ min = current;
46
+ minElement = element;
47
+ }
48
+ }
49
+ return minElement;
36
50
  }
37
51
  //#endregion
38
52
  exports.minBy = minBy;
@@ -1,5 +1,5 @@
1
- import { minBy as minBy$1 } from "../../array/minBy.mjs";
2
1
  import { identity } from "../../function/identity.mjs";
2
+ import { toArray } from "../_internal/toArray.mjs";
3
3
  import { iteratee } from "../util/iteratee.mjs";
4
4
  //#region src/compat/math/minBy.ts
5
5
  /**
@@ -8,7 +8,7 @@ import { iteratee } from "../util/iteratee.mjs";
8
8
  *
9
9
  * @template T - The type of elements in the array.
10
10
  * @param items The array of elements to search.
11
- * @param iteratee
11
+ * @param [iteratee=identity]
12
12
  * The criteria used to determine the minimum value.
13
13
  * - If a **function** is provided, it extracts a numeric value from each element.
14
14
  * - If a **string** is provided, it is treated as a key to extract values from the objects.
@@ -30,9 +30,23 @@ import { iteratee } from "../util/iteratee.mjs";
30
30
  * minBy([{ a: 1 }, { a: 2 }], ['a', 1]); // Returns: { a: 2 }
31
31
  * minBy([{ a: 1 }, { a: 2 }], { a: 1 }); // Returns: { a: 2 }
32
32
  */
33
- function minBy(items, iteratee$1) {
33
+ function minBy(items, iteratee$1 = identity) {
34
34
  if (items == null) return;
35
- return minBy$1(Array.from(items), iteratee(iteratee$1 ?? identity));
35
+ const array = toArray(items);
36
+ if (array.length === 0) return;
37
+ const getValue = iteratee(iteratee$1);
38
+ let minElement;
39
+ let min;
40
+ for (let i = 0; i < array.length; i++) {
41
+ const element = array[i];
42
+ const current = getValue(element, i, array);
43
+ if (Number.isNaN(current)) continue;
44
+ if (min === void 0 || current < min) {
45
+ min = current;
46
+ minElement = element;
47
+ }
48
+ }
49
+ return minElement;
36
50
  }
37
51
  //#endregion
38
52
  export { minBy };
@@ -1,5 +1,4 @@
1
- const require_isEqualsSameValueZero = require("../../_internal/isEqualsSameValueZero.js");
2
- require("../util/eq.js");
1
+ const require_eq = require("../util/eq.js");
3
2
  const require_keys = require("./keys.js");
4
3
  //#region src/compat/object/assign.ts
5
4
  /**
@@ -26,7 +25,7 @@ function assignImpl(object, source) {
26
25
  const keys$1 = require_keys.keys(source);
27
26
  for (let i = 0; i < keys$1.length; i++) {
28
27
  const key = keys$1[i];
29
- if (!(key in object) || !require_isEqualsSameValueZero.isEqualsSameValueZero(object[key], source[key])) object[key] = source[key];
28
+ if (!(key in object) || !require_eq.eq(object[key], source[key])) object[key] = source[key];
30
29
  }
31
30
  }
32
31
  //#endregion
@@ -1,5 +1,4 @@
1
- import { isEqualsSameValueZero } from "../../_internal/isEqualsSameValueZero.mjs";
2
- import "../util/eq.mjs";
1
+ import { eq } from "../util/eq.mjs";
3
2
  import { keys } from "./keys.mjs";
4
3
  //#region src/compat/object/assign.ts
5
4
  /**
@@ -26,7 +25,7 @@ function assignImpl(object, source) {
26
25
  const keys$1 = keys(source);
27
26
  for (let i = 0; i < keys$1.length; i++) {
28
27
  const key = keys$1[i];
29
- if (!(key in object) || !isEqualsSameValueZero(object[key], source[key])) object[key] = source[key];
28
+ if (!(key in object) || !eq(object[key], source[key])) object[key] = source[key];
30
29
  }
31
30
  }
32
31
  //#endregion
@@ -1,5 +1,4 @@
1
- const require_isEqualsSameValueZero = require("../../_internal/isEqualsSameValueZero.js");
2
- require("../util/eq.js");
1
+ const require_eq = require("../util/eq.js");
3
2
  const require_keysIn = require("./keysIn.js");
4
3
  //#region src/compat/object/assignIn.ts
5
4
  /**
@@ -26,7 +25,7 @@ function assignInImpl(object, source) {
26
25
  const keys = require_keysIn.keysIn(source);
27
26
  for (let i = 0; i < keys.length; i++) {
28
27
  const key = keys[i];
29
- if (!(key in object) || !require_isEqualsSameValueZero.isEqualsSameValueZero(object[key], source[key])) object[key] = source[key];
28
+ if (!(key in object) || !require_eq.eq(object[key], source[key])) object[key] = source[key];
30
29
  }
31
30
  }
32
31
  //#endregion
@@ -1,5 +1,4 @@
1
- import { isEqualsSameValueZero } from "../../_internal/isEqualsSameValueZero.mjs";
2
- import "../util/eq.mjs";
1
+ import { eq } from "../util/eq.mjs";
3
2
  import { keysIn } from "./keysIn.mjs";
4
3
  //#region src/compat/object/assignIn.ts
5
4
  /**
@@ -26,7 +25,7 @@ function assignInImpl(object, source) {
26
25
  const keys = keysIn(source);
27
26
  for (let i = 0; i < keys.length; i++) {
28
27
  const key = keys[i];
29
- if (!(key in object) || !isEqualsSameValueZero(object[key], source[key])) object[key] = source[key];
28
+ if (!(key in object) || !eq(object[key], source[key])) object[key] = source[key];
30
29
  }
31
30
  }
32
31
  //#endregion
@@ -1,5 +1,4 @@
1
- const require_isEqualsSameValueZero = require("../../_internal/isEqualsSameValueZero.js");
2
- require("../util/eq.js");
1
+ const require_eq = require("../util/eq.js");
3
2
  const require_keysIn = require("./keysIn.js");
4
3
  //#region src/compat/object/assignInWith.ts
5
4
  /**
@@ -41,7 +40,7 @@ function assignInWithImpl(object, source, getValueToAssign) {
41
40
  const objValue = object[key];
42
41
  const srcValue = source[key];
43
42
  const newValue = getValueToAssign?.(objValue, srcValue, key, object, source) ?? srcValue;
44
- if (!(key in object) || !require_isEqualsSameValueZero.isEqualsSameValueZero(objValue, newValue)) object[key] = newValue;
43
+ if (!(key in object) || !require_eq.eq(objValue, newValue)) object[key] = newValue;
45
44
  }
46
45
  }
47
46
  //#endregion
@@ -1,5 +1,4 @@
1
- import { isEqualsSameValueZero } from "../../_internal/isEqualsSameValueZero.mjs";
2
- import "../util/eq.mjs";
1
+ import { eq } from "../util/eq.mjs";
3
2
  import { keysIn } from "./keysIn.mjs";
4
3
  //#region src/compat/object/assignInWith.ts
5
4
  /**
@@ -41,7 +40,7 @@ function assignInWithImpl(object, source, getValueToAssign) {
41
40
  const objValue = object[key];
42
41
  const srcValue = source[key];
43
42
  const newValue = getValueToAssign?.(objValue, srcValue, key, object, source) ?? srcValue;
44
- if (!(key in object) || !isEqualsSameValueZero(objValue, newValue)) object[key] = newValue;
43
+ if (!(key in object) || !eq(objValue, newValue)) object[key] = newValue;
45
44
  }
46
45
  }
47
46
  //#endregion