es-toolkit 1.49.0 → 1.50.0

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 (184) 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/intersectionBy.js +12 -5
  58. package/dist/compat/array/intersectionBy.mjs +12 -5
  59. package/dist/compat/array/intersectionWith.js +2 -3
  60. package/dist/compat/array/intersectionWith.mjs +2 -3
  61. package/dist/compat/array/invokeMap.js +3 -7
  62. package/dist/compat/array/invokeMap.mjs +3 -4
  63. package/dist/compat/array/lastIndexOf.js +3 -2
  64. package/dist/compat/array/lastIndexOf.mjs +3 -2
  65. package/dist/compat/array/nth.js +2 -2
  66. package/dist/compat/array/nth.mjs +2 -2
  67. package/dist/compat/array/pullAllWith.js +2 -3
  68. package/dist/compat/array/pullAllWith.mjs +2 -3
  69. package/dist/compat/array/size.js +2 -0
  70. package/dist/compat/array/size.mjs +2 -0
  71. package/dist/compat/array/sortedIndexOf.js +2 -3
  72. package/dist/compat/array/sortedIndexOf.mjs +2 -3
  73. package/dist/compat/array/sortedLastIndexOf.js +2 -3
  74. package/dist/compat/array/sortedLastIndexOf.mjs +2 -3
  75. package/dist/compat/compat.d.mts +4 -3
  76. package/dist/compat/compat.d.ts +4 -3
  77. package/dist/compat/compat.js +10 -11
  78. package/dist/compat/compat.mjs +10 -11
  79. package/dist/compat/index.d.mts +4 -3
  80. package/dist/compat/index.d.ts +4 -3
  81. package/dist/compat/index.js +10 -9
  82. package/dist/compat/index.mjs +10 -9
  83. package/dist/compat/math/inRange.d.mts +5 -2
  84. package/dist/compat/math/inRange.d.ts +5 -2
  85. package/dist/compat/math/inRange.js +14 -11
  86. package/dist/compat/math/inRange.mjs +14 -11
  87. package/dist/compat/math/maxBy.d.mts +1 -1
  88. package/dist/compat/math/maxBy.d.ts +1 -1
  89. package/dist/compat/math/maxBy.js +18 -4
  90. package/dist/compat/math/maxBy.mjs +18 -4
  91. package/dist/compat/math/minBy.d.mts +1 -1
  92. package/dist/compat/math/minBy.d.ts +1 -1
  93. package/dist/compat/math/minBy.js +18 -4
  94. package/dist/compat/math/minBy.mjs +18 -4
  95. package/dist/compat/object/assign.js +2 -3
  96. package/dist/compat/object/assign.mjs +2 -3
  97. package/dist/compat/object/assignIn.js +2 -3
  98. package/dist/compat/object/assignIn.mjs +2 -3
  99. package/dist/compat/object/assignInWith.js +2 -3
  100. package/dist/compat/object/assignInWith.mjs +2 -3
  101. package/dist/compat/object/assignWith.js +2 -3
  102. package/dist/compat/object/assignWith.mjs +2 -3
  103. package/dist/compat/object/create.js +1 -1
  104. package/dist/compat/object/create.mjs +1 -1
  105. package/dist/compat/object/defaults.js +2 -3
  106. package/dist/compat/object/defaults.mjs +2 -3
  107. package/dist/compat/object/has.js +1 -1
  108. package/dist/compat/object/has.mjs +1 -1
  109. package/dist/compat/object/hasIn.js +1 -1
  110. package/dist/compat/object/hasIn.mjs +1 -1
  111. package/dist/compat/object/unset.js +1 -1
  112. package/dist/compat/object/unset.mjs +1 -1
  113. package/dist/compat/object/values.js +5 -1
  114. package/dist/compat/object/values.mjs +5 -1
  115. package/dist/compat/predicate/isMatchWith.js +4 -5
  116. package/dist/compat/predicate/isMatchWith.mjs +4 -5
  117. package/dist/compat/string/camelCase.js +6 -2
  118. package/dist/compat/string/camelCase.mjs +6 -2
  119. package/dist/compat/string/kebabCase.js +2 -2
  120. package/dist/compat/string/kebabCase.mjs +2 -2
  121. package/dist/compat/string/lowerCase.js +2 -2
  122. package/dist/compat/string/lowerCase.mjs +2 -2
  123. package/dist/compat/string/pad.js +10 -3
  124. package/dist/compat/string/pad.mjs +10 -3
  125. package/dist/compat/string/padEnd.js +7 -1
  126. package/dist/compat/string/padEnd.mjs +7 -1
  127. package/dist/compat/string/padStart.js +7 -1
  128. package/dist/compat/string/padStart.mjs +7 -1
  129. package/dist/compat/string/snakeCase.js +2 -2
  130. package/dist/compat/string/snakeCase.mjs +2 -2
  131. package/dist/compat/string/startCase.js +1 -1
  132. package/dist/compat/string/startCase.mjs +1 -1
  133. package/dist/compat/string/template.d.mts +1 -1
  134. package/dist/compat/string/template.d.ts +1 -1
  135. package/dist/compat/string/templateSettings.d.mts +18 -1
  136. package/dist/compat/string/templateSettings.d.ts +18 -1
  137. package/dist/compat/string/templateSettings.js +4 -1
  138. package/dist/compat/string/templateSettings.mjs +5 -1
  139. package/dist/compat/string/truncate.js +2 -9
  140. package/dist/compat/string/truncate.mjs +1 -8
  141. package/dist/compat/string/upperCase.js +2 -2
  142. package/dist/compat/string/upperCase.mjs +2 -2
  143. package/dist/compat/util/eq.d.mts +17 -1
  144. package/dist/compat/util/eq.d.ts +17 -1
  145. package/dist/compat/util/eq.js +19 -1
  146. package/dist/compat/util/eq.mjs +19 -1
  147. package/dist/compat/util/toArray.js +2 -1
  148. package/dist/compat/util/toArray.mjs +2 -1
  149. package/dist/fp/flow.d.mts +213 -0
  150. package/dist/fp/flow.d.ts +213 -0
  151. package/dist/fp/flow.js +50 -0
  152. package/dist/fp/flow.mjs +50 -0
  153. package/dist/fp/index.d.mts +2 -1
  154. package/dist/fp/index.d.ts +2 -1
  155. package/dist/fp/index.js +3 -1
  156. package/dist/fp/index.mjs +3 -2
  157. package/dist/fp/pipe.js +8 -12
  158. package/dist/fp/pipe.mjs +8 -12
  159. package/dist/map/hasValue.js +2 -2
  160. package/dist/map/hasValue.mjs +2 -2
  161. package/dist/predicate/isEqualWith.js +2 -3
  162. package/dist/predicate/isEqualWith.mjs +2 -3
  163. package/dist/string/deburr.js +1 -1
  164. package/dist/string/deburr.mjs +1 -1
  165. package/dist/types/DeepPartial.d.mts +21 -0
  166. package/dist/types/DeepPartial.d.ts +21 -0
  167. package/dist/types/DeepReadonly.d.mts +22 -0
  168. package/dist/types/DeepReadonly.d.ts +22 -0
  169. package/dist/types/NonEmptyArray.d.mts +14 -0
  170. package/dist/types/NonEmptyArray.d.ts +14 -0
  171. package/dist/types/Simplify.d.mts +18 -0
  172. package/dist/types/Simplify.d.ts +18 -0
  173. package/dist/types/ValueOf.d.mts +14 -0
  174. package/dist/types/ValueOf.d.ts +14 -0
  175. package/dist/types/Writable.d.mts +15 -0
  176. package/dist/types/Writable.d.ts +15 -0
  177. package/dist/types/index.d.mts +7 -0
  178. package/dist/types/index.d.ts +7 -0
  179. package/package.json +23 -7
  180. package/types.d.ts +1 -0
  181. package/dist/_internal/isEqualsSameValueZero.d.mts +0 -17
  182. package/dist/_internal/isEqualsSameValueZero.d.ts +0 -17
  183. package/dist/_internal/isEqualsSameValueZero.js +0 -19
  184. package/dist/_internal/isEqualsSameValueZero.mjs +0 -19
@@ -2,6 +2,7 @@ const require_isFunction = require("../../predicate/isFunction.js");
2
2
  const require_isNil = require("../../predicate/isNil.js");
3
3
  require("../../predicate/index.js");
4
4
  const require_isArrayLike = require("../predicate/isArrayLike.js");
5
+ const require_toPath = require("../util/toPath.js");
5
6
  const require_get = require("../object/get.js");
6
7
  //#region src/compat/array/invokeMap.ts
7
8
  /**
@@ -29,13 +30,8 @@ function invokeMap(collection, path, ...args) {
29
30
  }
30
31
  const method = require_get.get(value, path);
31
32
  let thisContext = value;
32
- if (Array.isArray(path)) {
33
- const pathExceptLast = path.slice(0, -1);
34
- if (pathExceptLast.length > 0) thisContext = require_get.get(value, pathExceptLast);
35
- } else if (typeof path === "string" && path.includes(".")) {
36
- const pathExceptLast = path.split(".").slice(0, -1).join(".");
37
- thisContext = require_get.get(value, pathExceptLast);
38
- }
33
+ const keys = Array.isArray(path) ? path : require_toPath.toPath(path);
34
+ if (keys.length > 1) thisContext = require_get.get(value, keys.slice(0, -1));
39
35
  result.push(method == null ? void 0 : method.apply(thisContext, args));
40
36
  }
41
37
  return result;
@@ -2,6 +2,7 @@ import { isFunction } from "../../predicate/isFunction.mjs";
2
2
  import { isNil } from "../../predicate/isNil.mjs";
3
3
  import "../../predicate/index.mjs";
4
4
  import { isArrayLike } from "../predicate/isArrayLike.mjs";
5
+ import { toPath } from "../util/toPath.mjs";
5
6
  import { get } from "../object/get.mjs";
6
7
  //#region src/compat/array/invokeMap.ts
7
8
  /**
@@ -29,10 +30,8 @@ function invokeMap(collection, path, ...args) {
29
30
  }
30
31
  const method = get(value, path);
31
32
  let thisContext = value;
32
- if (Array.isArray(path)) {
33
- const pathExceptLast = path.slice(0, -1);
34
- if (pathExceptLast.length > 0) thisContext = get(value, pathExceptLast);
35
- } else if (typeof path === "string" && path.includes(".")) thisContext = get(value, path.split(".").slice(0, -1).join("."));
33
+ const keys = Array.isArray(path) ? path : toPath(path);
34
+ if (keys.length > 1) thisContext = get(value, keys.slice(0, -1));
36
35
  result.push(method == null ? void 0 : method.apply(thisContext, args));
37
36
  }
38
37
  return result;
@@ -1,10 +1,11 @@
1
1
  const require_isArrayLike = require("../predicate/isArrayLike.js");
2
+ const require_toInteger = require("../util/toInteger.js");
2
3
  //#region src/compat/array/lastIndexOf.ts
3
4
  function lastIndexOf(array, searchElement, fromIndex) {
4
5
  if (!require_isArrayLike.isArrayLike(array) || array.length === 0) return -1;
5
6
  const length = array.length;
6
- let index = fromIndex ?? length - 1;
7
- if (fromIndex != null) index = index < 0 ? Math.max(length + index, 0) : Math.min(index, length - 1);
7
+ let index = fromIndex === void 0 ? length - 1 : require_toInteger.toInteger(fromIndex);
8
+ if (fromIndex !== void 0) index = index < 0 ? Math.max(length + index, 0) : Math.min(index, length - 1);
8
9
  if (Number.isNaN(searchElement)) {
9
10
  for (let i = index; i >= 0; i--) if (Number.isNaN(array[i])) return i;
10
11
  }
@@ -1,10 +1,11 @@
1
1
  import { isArrayLike } from "../predicate/isArrayLike.mjs";
2
+ import { toInteger } from "../util/toInteger.mjs";
2
3
  //#region src/compat/array/lastIndexOf.ts
3
4
  function lastIndexOf(array, searchElement, fromIndex) {
4
5
  if (!isArrayLike(array) || array.length === 0) return -1;
5
6
  const length = array.length;
6
- let index = fromIndex ?? length - 1;
7
- if (fromIndex != null) index = index < 0 ? Math.max(length + index, 0) : Math.min(index, length - 1);
7
+ let index = fromIndex === void 0 ? length - 1 : toInteger(fromIndex);
8
+ if (fromIndex !== void 0) index = index < 0 ? Math.max(length + index, 0) : Math.min(index, length - 1);
8
9
  if (Number.isNaN(searchElement)) {
9
10
  for (let i = index; i >= 0; i--) if (Number.isNaN(array[i])) return i;
10
11
  }
@@ -1,4 +1,4 @@
1
- const require_isArrayLikeObject = require("../predicate/isArrayLikeObject.js");
1
+ const require_isArrayLike = require("../predicate/isArrayLike.js");
2
2
  const require_toInteger = require("../util/toInteger.js");
3
3
  //#region src/compat/array/nth.ts
4
4
  /**
@@ -13,7 +13,7 @@ const require_toInteger = require("../util/toInteger.js");
13
13
  * nth([1, 2, 3], -1); // => 3
14
14
  */
15
15
  function nth(array, n = 0) {
16
- if (!require_isArrayLikeObject.isArrayLikeObject(array) || array.length === 0) return;
16
+ if (!require_isArrayLike.isArrayLike(array) || array.length === 0) return;
17
17
  n = require_toInteger.toInteger(n);
18
18
  if (n < 0) n += array.length;
19
19
  return array[n];
@@ -1,4 +1,4 @@
1
- import { isArrayLikeObject } from "../predicate/isArrayLikeObject.mjs";
1
+ import { isArrayLike } from "../predicate/isArrayLike.mjs";
2
2
  import { toInteger } from "../util/toInteger.mjs";
3
3
  //#region src/compat/array/nth.ts
4
4
  /**
@@ -13,7 +13,7 @@ import { toInteger } from "../util/toInteger.mjs";
13
13
  * nth([1, 2, 3], -1); // => 3
14
14
  */
15
15
  function nth(array, n = 0) {
16
- if (!isArrayLikeObject(array) || array.length === 0) return;
16
+ if (!isArrayLike(array) || array.length === 0) return;
17
17
  n = toInteger(n);
18
18
  if (n < 0) n += array.length;
19
19
  return array[n];
@@ -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_copyArray = require("../_internal/copyArray.js");
4
3
  //#region src/compat/array/pullAllWith.ts
5
4
  /**
@@ -27,7 +26,7 @@ function pullAllWith(array, values, comparator) {
27
26
  if (array?.length == null || values?.length == null) return array;
28
27
  if (array === values) values = require_copyArray.default(values);
29
28
  let resultLength = 0;
30
- if (comparator == null) comparator = (a, b) => require_isEqualsSameValueZero.isEqualsSameValueZero(a, b);
29
+ if (comparator == null) comparator = (a, b) => require_eq.eq(a, b);
31
30
  const valuesArray = Array.isArray(values) ? values : Array.from(values);
32
31
  const hasUndefined = valuesArray.includes(void 0);
33
32
  for (let i = 0; i < array.length; i++) {
@@ -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 copyArray from "../_internal/copyArray.mjs";
4
3
  //#region src/compat/array/pullAllWith.ts
5
4
  /**
@@ -27,7 +26,7 @@ function pullAllWith(array, values, comparator) {
27
26
  if (array?.length == null || values?.length == null) return array;
28
27
  if (array === values) values = copyArray(values);
29
28
  let resultLength = 0;
30
- if (comparator == null) comparator = (a, b) => isEqualsSameValueZero(a, b);
29
+ if (comparator == null) comparator = (a, b) => eq(a, b);
31
30
  const valuesArray = Array.isArray(values) ? values : Array.from(values);
32
31
  const hasUndefined = valuesArray.includes(void 0);
33
32
  for (let i = 0; i < array.length; i++) {
@@ -1,8 +1,10 @@
1
1
  const require_isNil = require("../../predicate/isNil.js");
2
2
  const require_isArrayLike = require("../predicate/isArrayLike.js");
3
+ const require_regexMultiByte = require("../_internal/regexMultiByte.js");
3
4
  //#region src/compat/array/size.ts
4
5
  function size(target) {
5
6
  if (require_isNil.isNil(target)) return 0;
7
+ if (typeof target === "string") return require_regexMultiByte.regexMultiByte.test(target) ? Array.from(target).length : target.length;
6
8
  if (require_isArrayLike.isArrayLike(target)) return target.length;
7
9
  if (target instanceof Map || target instanceof Set) return target.size;
8
10
  return Object.keys(target).length;
@@ -1,8 +1,10 @@
1
1
  import { isNil } from "../../predicate/isNil.mjs";
2
2
  import { isArrayLike } from "../predicate/isArrayLike.mjs";
3
+ import { regexMultiByte } from "../_internal/regexMultiByte.mjs";
3
4
  //#region src/compat/array/size.ts
4
5
  function size(target) {
5
6
  if (isNil(target)) return 0;
7
+ if (typeof target === "string") return regexMultiByte.test(target) ? Array.from(target).length : target.length;
6
8
  if (isArrayLike(target)) return target.length;
7
9
  if (target instanceof Map || target instanceof Set) return target.size;
8
10
  return Object.keys(target).length;
@@ -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_sortedIndex = require("./sortedIndex.js");
4
3
  //#region src/compat/array/sortedIndexOf.ts
5
4
  /**
@@ -36,7 +35,7 @@ const require_sortedIndex = require("./sortedIndex.js");
36
35
  function sortedIndexOf(array, value) {
37
36
  if (!array?.length) return -1;
38
37
  const index = require_sortedIndex.sortedIndex(array, value);
39
- if (index < array.length && require_isEqualsSameValueZero.isEqualsSameValueZero(array[index], value)) return index;
38
+ if (index < array.length && require_eq.eq(array[index], value)) return index;
40
39
  return -1;
41
40
  }
42
41
  //#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 { sortedIndex } from "./sortedIndex.mjs";
4
3
  //#region src/compat/array/sortedIndexOf.ts
5
4
  /**
@@ -36,7 +35,7 @@ import { sortedIndex } from "./sortedIndex.mjs";
36
35
  function sortedIndexOf(array, value) {
37
36
  if (!array?.length) return -1;
38
37
  const index = sortedIndex(array, value);
39
- if (index < array.length && isEqualsSameValueZero(array[index], value)) return index;
38
+ if (index < array.length && eq(array[index], value)) return index;
40
39
  return -1;
41
40
  }
42
41
  //#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_sortedLastIndex = require("./sortedLastIndex.js");
4
3
  //#region src/compat/array/sortedLastIndexOf.ts
5
4
  /**
@@ -37,7 +36,7 @@ const require_sortedLastIndex = require("./sortedLastIndex.js");
37
36
  function sortedLastIndexOf(array, value) {
38
37
  if (!array?.length) return -1;
39
38
  const index = require_sortedLastIndex.sortedLastIndex(array, value) - 1;
40
- if (index >= 0 && require_isEqualsSameValueZero.isEqualsSameValueZero(array[index], value)) return index;
39
+ if (index >= 0 && require_eq.eq(array[index], value)) return index;
41
40
  return -1;
42
41
  }
43
42
  //#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 { sortedLastIndex } from "./sortedLastIndex.mjs";
4
3
  //#region src/compat/array/sortedLastIndexOf.ts
5
4
  /**
@@ -37,7 +36,7 @@ import { sortedLastIndex } from "./sortedLastIndex.mjs";
37
36
  function sortedLastIndexOf(array, value) {
38
37
  if (!array?.length) return -1;
39
38
  const index = sortedLastIndex(array, value) - 1;
40
- if (index >= 0 && isEqualsSameValueZero(array[index], value)) return index;
39
+ if (index >= 0 && eq(array[index], value)) return index;
41
40
  return -1;
42
41
  }
43
42
  //#endregion
@@ -246,7 +246,8 @@ import { snakeCase } from "./string/snakeCase.mjs";
246
246
  import { split } from "./string/split.mjs";
247
247
  import { startCase } from "./string/startCase.mjs";
248
248
  import { startsWith } from "./string/startsWith.mjs";
249
- import { template, templateSettings } from "./string/template.mjs";
249
+ import { template } from "./string/template.mjs";
250
+ import { templateSettings } from "./string/templateSettings.mjs";
250
251
  import { toLower } from "./string/toLower.mjs";
251
252
  import { toUpper } from "./string/toUpper.mjs";
252
253
  import { trim } from "./string/trim.mjs";
@@ -260,7 +261,7 @@ import { words } from "./string/words.mjs";
260
261
  import { cond } from "./util/cond.mjs";
261
262
  import { constant } from "./util/constant.mjs";
262
263
  import { defaultTo } from "./util/defaultTo.mjs";
263
- import { isEqualsSameValueZero } from "../_internal/isEqualsSameValueZero.mjs";
264
+ import { eq } from "./util/eq.mjs";
264
265
  import { gt } from "./util/gt.mjs";
265
266
  import { gte } from "./util/gte.mjs";
266
267
  import { invoke } from "./util/invoke.mjs";
@@ -292,7 +293,7 @@ import { uniqueId } from "./util/uniqueId.mjs";
292
293
 
293
294
  //#region src/compat/compat.d.ts
294
295
  declare namespace compat_d_exports {
295
- export { DebouncedFunc, 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, 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 };
296
+ export { DebouncedFunc, 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, 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 };
296
297
  }
297
298
  //#endregion
298
299
  export { compat_d_exports };
@@ -246,7 +246,8 @@ import { snakeCase } from "./string/snakeCase.js";
246
246
  import { split } from "./string/split.js";
247
247
  import { startCase } from "./string/startCase.js";
248
248
  import { startsWith } from "./string/startsWith.js";
249
- import { template, templateSettings } from "./string/template.js";
249
+ import { template } from "./string/template.js";
250
+ import { templateSettings } from "./string/templateSettings.js";
250
251
  import { toLower } from "./string/toLower.js";
251
252
  import { toUpper } from "./string/toUpper.js";
252
253
  import { trim } from "./string/trim.js";
@@ -260,7 +261,7 @@ import { words } from "./string/words.js";
260
261
  import { cond } from "./util/cond.js";
261
262
  import { constant } from "./util/constant.js";
262
263
  import { defaultTo } from "./util/defaultTo.js";
263
- import { isEqualsSameValueZero } from "../_internal/isEqualsSameValueZero.js";
264
+ import { eq } from "./util/eq.js";
264
265
  import { gt } from "./util/gt.js";
265
266
  import { gte } from "./util/gte.js";
266
267
  import { invoke } from "./util/invoke.js";
@@ -292,7 +293,7 @@ import { uniqueId } from "./util/uniqueId.js";
292
293
 
293
294
  //#region src/compat/compat.d.ts
294
295
  declare namespace compat_d_exports {
295
- export { DebouncedFunc, 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, 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 };
296
+ export { DebouncedFunc, 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, 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 };
296
297
  }
297
298
  //#endregion
298
299
  export { compat_d_exports };
@@ -1,8 +1,7 @@
1
1
  const require_runtime = require("../_virtual/_rolldown/runtime.js");
2
2
  const require_isArray = require("./predicate/isArray.js");
3
3
  const require_isPlainObject = require("./predicate/isPlainObject.js");
4
- const require_isEqualsSameValueZero = require("../_internal/isEqualsSameValueZero.js");
5
- require("./util/eq.js");
4
+ const require_eq = require("./util/eq.js");
6
5
  const require_isEqual = require("../predicate/isEqual.js");
7
6
  const require_castArray = require("./array/castArray.js");
8
7
  const require_isArrayLike = require("./predicate/isArrayLike.js");
@@ -53,12 +52,12 @@ const require_findLast = require("./array/findLast.js");
53
52
  const require_findLastIndex = require("./array/findLastIndex.js");
54
53
  const require_head = require("./array/head.js");
55
54
  require("./array/first.js");
56
- const require_flatten = require("./array/flatten.js");
57
55
  const require_flattenDepth = require("./array/flattenDepth.js");
58
56
  const require_map = require("./array/map.js");
59
57
  const require_flatMap = require("./array/flatMap.js");
60
58
  const require_flatMapDepth = require("./array/flatMapDepth.js");
61
59
  const require_flatMapDeep = require("./array/flatMapDeep.js");
60
+ const require_flatten = require("./array/flatten.js");
62
61
  const require_flattenDeep = require("./array/flattenDeep.js");
63
62
  const require_groupBy = require("./array/groupBy.js");
64
63
  const require_includes = require("./array/includes.js");
@@ -91,8 +90,12 @@ const require_reverse = require("./array/reverse.js");
91
90
  const require_sample = require("./array/sample.js");
92
91
  const require_clamp = require("./math/clamp.js");
93
92
  const require_isMap = require("./predicate/isMap.js");
93
+ const require_isSet = require("./predicate/isSet.js");
94
94
  const require_toArray = require("./util/toArray.js");
95
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");
96
99
  const require_values = require("./object/values.js");
97
100
  const require_isNil = require("./predicate/isNil.js");
98
101
  const require_shuffle = require("./array/shuffle.js");
@@ -177,9 +180,6 @@ const require_rangeRight = require("./math/rangeRight.js");
177
180
  const require_round = require("./math/round.js");
178
181
  const require_subtract = require("./math/subtract.js");
179
182
  const require_noop = require("./function/noop.js");
180
- const require_isTypedArray = require("./predicate/isTypedArray.js");
181
- const require_times = require("./util/times.js");
182
- const require_keys = require("./object/keys.js");
183
183
  const require_assign = require("./object/assign.js");
184
184
  const require_keysIn = require("./object/keysIn.js");
185
185
  const require_assignIn = require("./object/assignIn.js");
@@ -240,12 +240,12 @@ const require_isFinite = require("./predicate/isFinite.js");
240
240
  const require_isInteger = require("./predicate/isInteger.js");
241
241
  const require_isRegExp = require("./predicate/isRegExp.js");
242
242
  const require_isSafeInteger = require("./predicate/isSafeInteger.js");
243
- const require_isSet = require("./predicate/isSet.js");
244
243
  const require_isWeakMap = require("./predicate/isWeakMap.js");
245
244
  const require_isWeakSet = require("./predicate/isWeakSet.js");
246
245
  const require_capitalize = require("./string/capitalize.js");
247
246
  const require_bindAll = require("./util/bindAll.js");
248
247
  const require_deburr = require("./string/deburr.js");
248
+ const require_words = require("./string/words.js");
249
249
  const require_camelCase = require("./string/camelCase.js");
250
250
  const require_endsWith = require("./string/endsWith.js");
251
251
  const require_escape = require("./string/escape.js");
@@ -263,7 +263,7 @@ const require_split = require("./string/split.js");
263
263
  const require_startCase = require("./string/startCase.js");
264
264
  const require_startsWith = require("./string/startsWith.js");
265
265
  const require_template = require("./string/template.js");
266
- require("./string/templateSettings.js");
266
+ const require_templateSettings = require("./string/templateSettings.js");
267
267
  const require_toLower = require("./string/toLower.js");
268
268
  const require_toUpper = require("./string/toUpper.js");
269
269
  const require_trim = require("./string/trim.js");
@@ -273,7 +273,6 @@ const require_truncate = require("./string/truncate.js");
273
273
  const require_unescape = require("./string/unescape.js");
274
274
  const require_upperCase = require("./string/upperCase.js");
275
275
  const require_upperFirst = require("./string/upperFirst.js");
276
- const require_words = require("./string/words.js");
277
276
  const require_cond = require("./util/cond.js");
278
277
  const require_constant = require("./util/constant.js");
279
278
  const require_defaultTo = require("./util/defaultTo.js");
@@ -350,7 +349,7 @@ var compat_exports = /* @__PURE__ */ require_runtime.__exportAll({
350
349
  each: () => require_forEach.forEach,
351
350
  eachRight: () => require_forEachRight.forEachRight,
352
351
  endsWith: () => require_endsWith.endsWith,
353
- eq: () => require_isEqualsSameValueZero.isEqualsSameValueZero,
352
+ eq: () => require_eq.eq,
354
353
  escape: () => require_escape.escape,
355
354
  escapeRegExp: () => require_escapeRegExp.escapeRegExp,
356
355
  every: () => require_every.every,
@@ -546,7 +545,7 @@ var compat_exports = /* @__PURE__ */ require_runtime.__exportAll({
546
545
  takeRightWhile: () => require_takeRightWhile.takeRightWhile,
547
546
  takeWhile: () => require_takeWhile.takeWhile,
548
547
  template: () => require_template.template,
549
- templateSettings: () => require_template.templateSettings,
548
+ templateSettings: () => require_templateSettings.templateSettings,
550
549
  throttle: () => require_throttle.throttle,
551
550
  times: () => require_times.times,
552
551
  toArray: () => require_toArray.toArray,
@@ -1,8 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
2
2
  import { isArray } from "./predicate/isArray.mjs";
3
3
  import { isPlainObject } from "./predicate/isPlainObject.mjs";
4
- import { isEqualsSameValueZero } from "../_internal/isEqualsSameValueZero.mjs";
5
- import "./util/eq.mjs";
4
+ import { eq } from "./util/eq.mjs";
6
5
  import { isEqual } from "../predicate/isEqual.mjs";
7
6
  import { castArray } from "./array/castArray.mjs";
8
7
  import { isArrayLike } from "./predicate/isArrayLike.mjs";
@@ -53,12 +52,12 @@ import { findLast } from "./array/findLast.mjs";
53
52
  import { findLastIndex } from "./array/findLastIndex.mjs";
54
53
  import { head } from "./array/head.mjs";
55
54
  import "./array/first.mjs";
56
- import { flatten } from "./array/flatten.mjs";
57
55
  import { flattenDepth } from "./array/flattenDepth.mjs";
58
56
  import { map } from "./array/map.mjs";
59
57
  import { flatMap } from "./array/flatMap.mjs";
60
58
  import { flatMapDepth } from "./array/flatMapDepth.mjs";
61
59
  import { flatMapDeep } from "./array/flatMapDeep.mjs";
60
+ import { flatten } from "./array/flatten.mjs";
62
61
  import { flattenDeep } from "./array/flattenDeep.mjs";
63
62
  import { groupBy } from "./array/groupBy.mjs";
64
63
  import { includes } from "./array/includes.mjs";
@@ -91,8 +90,12 @@ import { reverse } from "./array/reverse.mjs";
91
90
  import { sample } from "./array/sample.mjs";
92
91
  import { clamp } from "./math/clamp.mjs";
93
92
  import { isMap } from "./predicate/isMap.mjs";
93
+ import { isSet } from "./predicate/isSet.mjs";
94
94
  import { toArray } from "./util/toArray.mjs";
95
95
  import { sampleSize } from "./array/sampleSize.mjs";
96
+ import { isTypedArray } from "./predicate/isTypedArray.mjs";
97
+ import { times } from "./util/times.mjs";
98
+ import { keys } from "./object/keys.mjs";
96
99
  import { values } from "./object/values.mjs";
97
100
  import { isNil } from "./predicate/isNil.mjs";
98
101
  import { shuffle } from "./array/shuffle.mjs";
@@ -177,9 +180,6 @@ import { rangeRight } from "./math/rangeRight.mjs";
177
180
  import { round } from "./math/round.mjs";
178
181
  import { subtract } from "./math/subtract.mjs";
179
182
  import { noop } from "./function/noop.mjs";
180
- import { isTypedArray } from "./predicate/isTypedArray.mjs";
181
- import { times } from "./util/times.mjs";
182
- import { keys } from "./object/keys.mjs";
183
183
  import { assign } from "./object/assign.mjs";
184
184
  import { keysIn } from "./object/keysIn.mjs";
185
185
  import { assignIn } from "./object/assignIn.mjs";
@@ -240,12 +240,12 @@ import { isFinite } from "./predicate/isFinite.mjs";
240
240
  import { isInteger } from "./predicate/isInteger.mjs";
241
241
  import { isRegExp } from "./predicate/isRegExp.mjs";
242
242
  import { isSafeInteger } from "./predicate/isSafeInteger.mjs";
243
- import { isSet } from "./predicate/isSet.mjs";
244
243
  import { isWeakMap } from "./predicate/isWeakMap.mjs";
245
244
  import { isWeakSet } from "./predicate/isWeakSet.mjs";
246
245
  import { capitalize } from "./string/capitalize.mjs";
247
246
  import { bindAll } from "./util/bindAll.mjs";
248
247
  import { deburr } from "./string/deburr.mjs";
248
+ import { words } from "./string/words.mjs";
249
249
  import { camelCase } from "./string/camelCase.mjs";
250
250
  import { endsWith } from "./string/endsWith.mjs";
251
251
  import { escape } from "./string/escape.mjs";
@@ -262,8 +262,8 @@ import { snakeCase } from "./string/snakeCase.mjs";
262
262
  import { split } from "./string/split.mjs";
263
263
  import { startCase } from "./string/startCase.mjs";
264
264
  import { startsWith } from "./string/startsWith.mjs";
265
- import { template, templateSettings } from "./string/template.mjs";
266
- import "./string/templateSettings.mjs";
265
+ import { template } from "./string/template.mjs";
266
+ import { templateSettings } from "./string/templateSettings.mjs";
267
267
  import { toLower } from "./string/toLower.mjs";
268
268
  import { toUpper } from "./string/toUpper.mjs";
269
269
  import { trim } from "./string/trim.mjs";
@@ -273,7 +273,6 @@ import { truncate } from "./string/truncate.mjs";
273
273
  import { unescape } from "./string/unescape.mjs";
274
274
  import { upperCase } from "./string/upperCase.mjs";
275
275
  import { upperFirst } from "./string/upperFirst.mjs";
276
- import { words } from "./string/words.mjs";
277
276
  import { cond } from "./util/cond.mjs";
278
277
  import { constant } from "./util/constant.mjs";
279
278
  import { defaultTo } from "./util/defaultTo.mjs";
@@ -350,7 +349,7 @@ var compat_exports = /* @__PURE__ */ __exportAll({
350
349
  each: () => forEach,
351
350
  eachRight: () => forEachRight,
352
351
  endsWith: () => endsWith,
353
- eq: () => isEqualsSameValueZero,
352
+ eq: () => eq,
354
353
  escape: () => escape,
355
354
  escapeRegExp: () => escapeRegExp,
356
355
  every: () => every,
@@ -247,7 +247,8 @@ import { snakeCase } from "./string/snakeCase.mjs";
247
247
  import { split } from "./string/split.mjs";
248
248
  import { startCase } from "./string/startCase.mjs";
249
249
  import { startsWith } from "./string/startsWith.mjs";
250
- import { template, templateSettings } from "./string/template.mjs";
250
+ import { template } from "./string/template.mjs";
251
+ import { templateSettings } from "./string/templateSettings.mjs";
251
252
  import { toLower } from "./string/toLower.mjs";
252
253
  import { toUpper } from "./string/toUpper.mjs";
253
254
  import { trim } from "./string/trim.mjs";
@@ -261,7 +262,7 @@ import { words } from "./string/words.mjs";
261
262
  import { cond } from "./util/cond.mjs";
262
263
  import { constant } from "./util/constant.mjs";
263
264
  import { defaultTo } from "./util/defaultTo.mjs";
264
- import { isEqualsSameValueZero } from "../_internal/isEqualsSameValueZero.mjs";
265
+ import { eq } from "./util/eq.mjs";
265
266
  import { gt } from "./util/gt.mjs";
266
267
  import { gte } from "./util/gte.mjs";
267
268
  import { invoke } from "./util/invoke.mjs";
@@ -290,4 +291,4 @@ import { toPlainObject } from "./util/toPlainObject.mjs";
290
291
  import { toSafeInteger } from "./util/toSafeInteger.mjs";
291
292
  import { toString } from "./util/toString.mjs";
292
293
  import { uniqueId } from "./util/uniqueId.mjs";
293
- export { DebouncedFunc, 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 };
294
+ export { DebouncedFunc, 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 };
@@ -247,7 +247,8 @@ import { snakeCase } from "./string/snakeCase.js";
247
247
  import { split } from "./string/split.js";
248
248
  import { startCase } from "./string/startCase.js";
249
249
  import { startsWith } from "./string/startsWith.js";
250
- import { template, templateSettings } from "./string/template.js";
250
+ import { template } from "./string/template.js";
251
+ import { templateSettings } from "./string/templateSettings.js";
251
252
  import { toLower } from "./string/toLower.js";
252
253
  import { toUpper } from "./string/toUpper.js";
253
254
  import { trim } from "./string/trim.js";
@@ -261,7 +262,7 @@ import { words } from "./string/words.js";
261
262
  import { cond } from "./util/cond.js";
262
263
  import { constant } from "./util/constant.js";
263
264
  import { defaultTo } from "./util/defaultTo.js";
264
- import { isEqualsSameValueZero } from "../_internal/isEqualsSameValueZero.js";
265
+ import { eq } from "./util/eq.js";
265
266
  import { gt } from "./util/gt.js";
266
267
  import { gte } from "./util/gte.js";
267
268
  import { invoke } from "./util/invoke.js";
@@ -290,4 +291,4 @@ import { toPlainObject } from "./util/toPlainObject.js";
290
291
  import { toSafeInteger } from "./util/toSafeInteger.js";
291
292
  import { toString } from "./util/toString.js";
292
293
  import { uniqueId } from "./util/uniqueId.js";
293
- export { DebouncedFunc, 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 };
294
+ export { DebouncedFunc, 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 };