@gooddata/util 11.68.0-alpha.5 → 11.68.0-alpha.7

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 (125) hide show
  1. package/LICENSE +1 -1
  2. package/NOTICE +177 -0
  3. package/esm/_/_assignValue.d.ts.map +1 -1
  4. package/esm/_/_assignValue.js +2 -6
  5. package/esm/_/_baseAssignValue.d.ts +41 -0
  6. package/esm/_/_baseAssignValue.d.ts.map +1 -0
  7. package/esm/_/_baseAssignValue.js +48 -0
  8. package/esm/_/_baseClone.d.ts.map +1 -1
  9. package/esm/_/_baseClone.js +3 -30
  10. package/esm/_/_baseMerge.d.ts +15 -0
  11. package/esm/_/_baseMerge.d.ts.map +1 -0
  12. package/esm/_/_baseMerge.js +137 -0
  13. package/esm/_/_baseOrderBy.d.ts +11 -0
  14. package/esm/_/_baseOrderBy.d.ts.map +1 -0
  15. package/esm/_/_baseOrderBy.js +70 -0
  16. package/esm/_/_basePickBy.d.ts +14 -0
  17. package/esm/_/_basePickBy.d.ts.map +1 -0
  18. package/esm/_/_basePickBy.js +57 -0
  19. package/esm/_/_cloneArrayBuffer.d.ts +39 -0
  20. package/esm/_/_cloneArrayBuffer.d.ts.map +1 -0
  21. package/esm/_/_cloneArrayBuffer.js +45 -0
  22. package/esm/_/_cloneTypedArray.d.ts +10 -0
  23. package/esm/_/_cloneTypedArray.d.ts.map +1 -0
  24. package/esm/_/_cloneTypedArray.js +49 -0
  25. package/esm/_/_compareAscending.d.ts +12 -0
  26. package/esm/_/_compareAscending.d.ts.map +1 -0
  27. package/esm/_/_compareAscending.js +78 -0
  28. package/esm/_/_createCompounder.d.ts +11 -0
  29. package/esm/_/_createCompounder.d.ts.map +1 -0
  30. package/esm/_/_createCompounder.js +47 -0
  31. package/esm/_/_initCloneObject.d.ts +10 -0
  32. package/esm/_/_initCloneObject.d.ts.map +1 -0
  33. package/esm/_/_initCloneObject.js +48 -0
  34. package/esm/_/_unicode.d.ts +27 -0
  35. package/esm/_/_unicode.d.ts.map +1 -0
  36. package/esm/_/_unicode.js +120 -0
  37. package/esm/_/camelCase.d.ts +10 -0
  38. package/esm/_/camelCase.d.ts.map +1 -0
  39. package/esm/_/camelCase.js +45 -0
  40. package/esm/_/capitalize.d.ts +9 -0
  41. package/esm/_/capitalize.d.ts.map +1 -0
  42. package/esm/_/capitalize.js +43 -0
  43. package/esm/_/deburr.d.ts +10 -0
  44. package/esm/_/deburr.d.ts.map +1 -0
  45. package/esm/_/deburr.js +243 -0
  46. package/esm/_/difference.d.ts +14 -0
  47. package/esm/_/difference.d.ts.map +1 -0
  48. package/esm/_/difference.js +67 -0
  49. package/esm/_/escape.d.ts +13 -0
  50. package/esm/_/escape.d.ts.map +1 -0
  51. package/esm/_/escape.js +56 -0
  52. package/esm/_/has.d.ts +23 -0
  53. package/esm/_/has.d.ts.map +1 -0
  54. package/esm/_/has.js +35 -0
  55. package/esm/_/isArray.d.ts +61 -0
  56. package/esm/_/isArray.d.ts.map +1 -0
  57. package/esm/_/isArray.js +62 -0
  58. package/esm/_/isPlainObject.d.ts +1 -1
  59. package/esm/_/isPlainObject.d.ts.map +1 -1
  60. package/esm/_/kebabCase.d.ts +9 -0
  61. package/esm/_/kebabCase.d.ts.map +1 -0
  62. package/esm/_/kebabCase.js +40 -0
  63. package/esm/_/keyBy.d.ts +17 -0
  64. package/esm/_/keyBy.d.ts.map +1 -0
  65. package/esm/_/keyBy.js +43 -0
  66. package/esm/_/keysIn.d.ts +10 -0
  67. package/esm/_/keysIn.d.ts.map +1 -0
  68. package/esm/_/keysIn.js +54 -0
  69. package/esm/_/memoize.d.ts +89 -0
  70. package/esm/_/memoize.d.ts.map +1 -0
  71. package/esm/_/memoize.js +36 -0
  72. package/esm/_/merge.d.ts +32 -0
  73. package/esm/_/merge.d.ts.map +1 -0
  74. package/esm/_/merge.js +45 -0
  75. package/esm/_/omit.d.ts +1 -5
  76. package/esm/_/omit.d.ts.map +1 -1
  77. package/esm/_/omitBy.d.ts +21 -0
  78. package/esm/_/omitBy.d.ts.map +1 -0
  79. package/esm/_/omitBy.js +37 -0
  80. package/esm/_/partial.d.ts +87 -0
  81. package/esm/_/partial.d.ts.map +1 -0
  82. package/esm/_/partial.js +30 -0
  83. package/esm/_/partition.d.ts +23 -0
  84. package/esm/_/partition.d.ts.map +1 -0
  85. package/esm/_/partition.js +42 -0
  86. package/esm/_/pick.d.ts +18 -0
  87. package/esm/_/pick.d.ts.map +1 -0
  88. package/esm/_/pick.js +48 -0
  89. package/esm/_/pickBy.d.ts +21 -0
  90. package/esm/_/pickBy.d.ts.map +1 -0
  91. package/esm/_/pickBy.js +36 -0
  92. package/esm/_/sortBy.d.ts +17 -0
  93. package/esm/_/sortBy.d.ts.map +1 -0
  94. package/esm/_/sortBy.js +46 -0
  95. package/esm/_/throttle.d.ts +76 -0
  96. package/esm/_/throttle.d.ts.map +1 -0
  97. package/esm/_/throttle.js +45 -0
  98. package/esm/_/toString.d.ts +11 -0
  99. package/esm/_/toString.d.ts.map +1 -0
  100. package/esm/_/toString.js +57 -0
  101. package/esm/_/types.d.ts +64 -0
  102. package/esm/_/types.d.ts.map +1 -1
  103. package/esm/_/union.d.ts +11 -0
  104. package/esm/_/union.d.ts.map +1 -0
  105. package/esm/_/union.js +55 -0
  106. package/esm/_/uniq.d.ts +12 -0
  107. package/esm/_/uniq.d.ts.map +1 -0
  108. package/esm/_/uniq.js +47 -0
  109. package/esm/_/uniqWith.d.ts +14 -0
  110. package/esm/_/uniqWith.d.ts.map +1 -0
  111. package/esm/_/uniqWith.js +59 -0
  112. package/esm/_/upperFirst.d.ts +10 -0
  113. package/esm/_/upperFirst.d.ts.map +1 -0
  114. package/esm/_/upperFirst.js +46 -0
  115. package/esm/_/words.d.ts +9 -0
  116. package/esm/_/words.d.ts.map +1 -0
  117. package/esm/_/words.js +50 -0
  118. package/esm/_/zip.d.ts +28 -0
  119. package/esm/_/zip.d.ts.map +1 -0
  120. package/esm/_/zip.js +38 -0
  121. package/esm/index.d.ts +23 -2
  122. package/esm/index.d.ts.map +1 -1
  123. package/esm/index.js +21 -0
  124. package/esm/util.d.ts +549 -0
  125. package/package.json +5 -4
@@ -0,0 +1,23 @@
1
+ import type { _List, _ValueIteratee, _ValueIteratorTypeGuard } from "./types.js";
2
+ /**
3
+ * Creates an array of elements split into two groups, the first of which contains elements `predicate`
4
+ * returns truthy for, the second of which contains elements `predicate` returns falsey for. The
5
+ * predicate is invoked with one argument: (value).
6
+ *
7
+ * @param collection - The collection to iterate over.
8
+ * @param predicate - The function invoked per iteration.
9
+ * @returns Returns the array of grouped elements.
10
+ * @internal
11
+ */
12
+ export declare function _partition<T, U extends T>(collection: _List<T> | null | undefined, predicate: _ValueIteratorTypeGuard<T, U>): [U[], Array<Exclude<T, U>>];
13
+ /**
14
+ * @see _partition
15
+ * @internal
16
+ */
17
+ export declare function _partition<T>(collection: _List<T> | null | undefined, predicate: _ValueIteratee<T>): [T[], T[]];
18
+ /**
19
+ * @see _partition
20
+ * @internal
21
+ */
22
+ export declare function _partition<T extends object>(collection: T | null | undefined, predicate: _ValueIteratee<T[keyof T]>): [Array<T[keyof T]>, Array<T[keyof T]>];
23
+ //# sourceMappingURL=partition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partition.d.ts","sourceRoot":"","sources":["../../src/_/partition.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAEjF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACrC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACvC,SAAS,EAAE,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,GACzC,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/B;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EACxB,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACvC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,GAC7B,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;AACd;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EACvC,UAAU,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAChC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACtC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,42 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseEach } from "./_baseEach.js";
33
+ import { _baseIteratee } from "./_baseIteratee.js";
34
+ export function _partition(collection, predicate) {
35
+ const truthy = [];
36
+ const falsy = [];
37
+ const test = _baseIteratee(predicate);
38
+ _baseEach(collection, (value) => {
39
+ (test(value) ? truthy : falsy).push(value);
40
+ });
41
+ return [truthy, falsy];
42
+ }
@@ -0,0 +1,18 @@
1
+ import type { _PropertyPath } from "./set.js";
2
+ import type { _Many, _PartialObject } from "./types.js";
3
+ /**
4
+ * Creates an object composed of the picked `object` properties, own or inherited. Paths may be given
5
+ * individually or in arrays and may be deep; a deep path recreates the containers along it in the result,
6
+ * while the picked value itself is kept by reference.
7
+ *
8
+ * @param object - The source object.
9
+ * @param props - The property paths to pick, given individually or in arrays.
10
+ * @returns Returns the new object.
11
+ * @internal
12
+ */
13
+ export declare function _pick<T extends object, U extends keyof T>(object: T, ...props: _Many<U>[]): Pick<T, U>;
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare function _pick<T>(object: T | null | undefined, ...props: _Many<_PropertyPath>[]): _PartialObject<T>;
18
+ //# sourceMappingURL=pick.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pick.d.ts","sourceRoot":"","sources":["../../src/_/pick.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAExD;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxG;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC"}
package/esm/_/pick.js ADDED
@@ -0,0 +1,48 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseGet } from "./_baseGet.js";
33
+ import { _baseSet } from "./_baseSet.js";
34
+ import { _castPath } from "./_castPath.js";
35
+ import { _hasPath } from "./_hasPath.js";
36
+ export function _pick(object, ...props) {
37
+ const result = {};
38
+ if (object == null) {
39
+ return result;
40
+ }
41
+ for (const path of props.flat()) {
42
+ const keys = _castPath(path, object);
43
+ if (_hasPath(object, keys, (target, key) => key in target)) {
44
+ _baseSet(result, keys, _baseGet(object, keys));
45
+ }
46
+ }
47
+ return result;
48
+ }
@@ -0,0 +1,21 @@
1
+ import type { _Dictionary, _NumericDictionary, _PartialObject, _ValueKeyIteratee } from "./types.js";
2
+ /**
3
+ * Creates an object composed of the own and inherited enumerable string and symbol keyed properties of
4
+ * `object` that `predicate` returns truthy for. The predicate is invoked with two arguments: (value, key).
5
+ * Picked values are kept by reference.
6
+ *
7
+ * @param object - The source object.
8
+ * @param predicate - The function invoked per property, or an iteratee shorthand. Defaults to identity.
9
+ * @returns Returns the new object.
10
+ * @internal
11
+ */
12
+ export declare function _pickBy<T>(object: _Dictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _Dictionary<T>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _pickBy<T>(object: _NumericDictionary<T> | null | undefined, predicate?: _ValueKeyIteratee<T>): _NumericDictionary<T>;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare function _pickBy<T extends object>(object: T | null | undefined, predicate?: _ValueKeyIteratee<T[keyof T]>): _PartialObject<T>;
21
+ //# sourceMappingURL=pickBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickBy.d.ts","sourceRoot":"","sources":["../../src/_/pickBy.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAErG;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACzC,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CAAC;AAClB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAChD,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GACjC,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACzB;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACpC,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC5B,SAAS,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAC1C,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseIteratee } from "./_baseIteratee.js";
33
+ import { _basePickBy } from "./_basePickBy.js";
34
+ export function _pickBy(object, predicate) {
35
+ return _basePickBy(object, _baseIteratee(predicate));
36
+ }
@@ -0,0 +1,17 @@
1
+ import type { _List, _ListIteratee, _Many, _ObjectIteratee } from "./types.js";
2
+ /**
3
+ * Creates an array of elements, sorted in ascending order by the results of running each element in a
4
+ * collection through each iteratee. This method performs a stable sort, that is, it preserves the original
5
+ * sort order of equal elements. The iteratees are invoked with one argument: (value).
6
+ *
7
+ * @param collection - The collection to iterate over.
8
+ * @param iteratees - The iteratees to sort by, specified individually or in arrays.
9
+ * @returns Returns the new sorted array.
10
+ * @internal
11
+ */
12
+ export declare function _sortBy<T>(collection: _List<T> | null | undefined, ...iteratees: _Many<_ListIteratee<T>>[]): T[];
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function _sortBy<T extends object>(collection: T | null | undefined, ...iteratees: _Many<_ObjectIteratee<T>>[]): T[keyof T][];
17
+ //# sourceMappingURL=sortBy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortBy.d.ts","sourceRoot":"","sources":["../../src/_/sortBy.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE/E;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACrB,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACvC,GAAG,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,GACxC,CAAC,EAAE,CAAC;AACP;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EACpC,UAAU,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAChC,GAAG,SAAS,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,GAC1C,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,46 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseOrderBy } from "./_baseOrderBy.js";
33
+ import { _isIterateeCall } from "./_isIterateeCall.js";
34
+ export function _sortBy(collection, ...iteratees) {
35
+ if (collection == null) {
36
+ return [];
37
+ }
38
+ // called as an iteratee, e.g. by `map`, the trailing index and collection are not iteratees
39
+ if (iteratees.length > 1 && _isIterateeCall(collection, iteratees[0], iteratees[1])) {
40
+ iteratees = [];
41
+ }
42
+ else if (iteratees.length > 2 && _isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
43
+ iteratees = [iteratees[0]];
44
+ }
45
+ return _baseOrderBy(collection, iteratees.flat());
46
+ }
@@ -0,0 +1,76 @@
1
+ /*!
2
+ * Portions of this file are derived from Lodash.
3
+ * https://github.com/lodash/lodash
4
+ *
5
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
+ *
7
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
8
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
9
+ *
10
+ * Modifications Copyright (c) 2026 GoodData Corporation
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining
13
+ * a copy of this software and associated documentation files (the
14
+ * "Software"), to deal in the Software without restriction, including
15
+ * without limitation the rights to use, copy, modify, merge, publish,
16
+ * distribute, sublicense, and/or sell copies of the Software, and to
17
+ * permit persons to whom the Software is furnished to do so, subject to
18
+ * the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be
21
+ * included in all copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+ */
31
+ import { type _DebouncedFunc, type _DebouncedFuncLeading } from "./debounce.js";
32
+ /**
33
+ * Options of `_throttle`.
34
+ *
35
+ * @internal
36
+ */
37
+ export type _ThrottleSettings = {
38
+ /** Invoke on the leading edge of the timeout. Defaults to `true`. */
39
+ leading?: boolean | undefined;
40
+ /** Invoke on the trailing edge of the timeout. Defaults to `true`. */
41
+ trailing?: boolean | undefined;
42
+ };
43
+ /**
44
+ * {@link _ThrottleSettings} that keep `leading` switched on, which guarantees a result on every call.
45
+ *
46
+ * @internal
47
+ */
48
+ export type _ThrottleSettingsLeading = (_ThrottleSettings & {
49
+ leading: true;
50
+ }) | Omit<_ThrottleSettings, "leading">;
51
+ /**
52
+ * Creates a throttled function that only invokes `func` at most once per every `wait` milliseconds. The
53
+ * throttled function comes with a `cancel` method to cancel delayed `func` invocations and a `flush` method
54
+ * to immediately invoke them. Provide `options` to indicate whether `func` should be invoked on the leading
55
+ * and/or trailing edge of the `wait` timeout. The `func` is invoked with the last arguments provided to the
56
+ * throttled function. Subsequent calls to the throttled function return the result of the last `func`
57
+ * invocation.
58
+ *
59
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked on the trailing edge of the
60
+ * timeout only if the throttled function is invoked more than once during the `wait` timeout.
61
+ *
62
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred until the next tick, similar to
63
+ * `setTimeout` with a timeout of `0`.
64
+ *
65
+ * @param func - The function to throttle.
66
+ * @param wait - The number of milliseconds to throttle invocations to. Defaults to `0`.
67
+ * @param options - The options object.
68
+ * @returns Returns the new throttled function.
69
+ * @internal
70
+ */
71
+ export declare function _throttle<T extends (...args: any) => any>(func: T, wait?: number, options?: _ThrottleSettingsLeading): _DebouncedFuncLeading<T>;
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare function _throttle<T extends (...args: any) => any>(func: T, wait?: number, options?: _ThrottleSettings): _DebouncedFunc<T>;
76
+ //# sourceMappingURL=throttle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["../../src/_/throttle.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAa,MAAM,eAAe,CAAC;AAG3F;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,qEAAqE;IACrE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAC9B,CAAC,iBAAiB,GAAG;IAAE,OAAO,EAAE,IAAI,CAAA;CAAE,CAAC,GACvC,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,wBAAgB,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EACrD,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,wBAAwB,GACnC,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAC5B;;GAEG;AAEH,wBAAgB,SAAS,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EACrD,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,iBAAiB,GAC5B,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _debounce } from "./debounce.js";
33
+ import { _isObject } from "./isObject.js";
34
+ // oxlint-disable-next-line @typescript-eslint/no-explicit-any
35
+ export function _throttle(func, wait, options) {
36
+ if (typeof func !== "function") {
37
+ throw new TypeError("Expected a function");
38
+ }
39
+ const settings = _isObject(options) ? options : {};
40
+ const leading = "leading" in settings ? !!settings.leading : true;
41
+ const trailing = "trailing" in settings ? !!settings.trailing : true;
42
+ // a throttle is a debounce whose maximum wait equals the wait, so the function is invoked at least once per
43
+ // window while calls keep coming
44
+ return _debounce(func, wait, { leading, maxWait: wait, trailing });
45
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Converts `value` to a string. An empty string is returned for `null` and `undefined` values. The sign of
3
+ * `-0` is preserved, symbols are converted through their `toString`, and arrays are converted element by
4
+ * element and joined with commas.
5
+ *
6
+ * @param value - The value to convert.
7
+ * @returns Returns the converted string.
8
+ * @internal
9
+ */
10
+ export declare function _toString(value: unknown): string;
11
+ //# sourceMappingURL=toString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../src/_/toString.ts"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,57 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _isSymbol } from "./isSymbol.js";
33
+ /**
34
+ * Converts `value` to a string. An empty string is returned for `null` and `undefined` values. The sign of
35
+ * `-0` is preserved, symbols are converted through their `toString`, and arrays are converted element by
36
+ * element and joined with commas.
37
+ *
38
+ * @param value - The value to convert.
39
+ * @returns Returns the converted string.
40
+ * @internal
41
+ */
42
+ export function _toString(value) {
43
+ return value == null ? "" : _baseToString(value);
44
+ }
45
+ function _baseToString(value) {
46
+ if (typeof value === "string") {
47
+ return value;
48
+ }
49
+ if (Array.isArray(value)) {
50
+ return value.map(_baseToString).join(",");
51
+ }
52
+ if (_isSymbol(value)) {
53
+ return Symbol.prototype.toString.call(value);
54
+ }
55
+ const result = String(value);
56
+ return result === "0" && 1 / value === -Infinity ? "-0" : result;
57
+ }
package/esm/_/types.d.ts CHANGED
@@ -67,4 +67,68 @@ export type _IterateeShorthand<T> = _PropertyName | [_PropertyName, any] | _Part
67
67
  * @internal
68
68
  */
69
69
  export type _ValueIteratee<T> = ((value: T) => _NotVoid) | _IterateeShorthand<T>;
70
+ /**
71
+ * A predicate that narrows the element type, so functions like `_partition` can type their result.
72
+ *
73
+ * @internal
74
+ */
75
+ export type _ValueIteratorTypeGuard<T, S extends T> = (value: T) => value is S;
76
+ /**
77
+ * @internal
78
+ */
79
+ export type _ListIterator<T, TResult> = (value: T, index: number, collection: _List<T>) => TResult;
80
+ /**
81
+ * @internal
82
+ */
83
+ export type _ListIteratee<T> = _ListIterator<T, _NotVoid> | _IterateeShorthand<T>;
84
+ /**
85
+ * @internal
86
+ */
87
+ export type _ObjectIterator<TObject, TResult> = (value: TObject[keyof TObject], key: string, collection: TObject) => TResult;
88
+ /**
89
+ * @internal
90
+ */
91
+ export type _ObjectIteratee<TObject> = _ObjectIterator<TObject, _NotVoid> | _IterateeShorthand<TObject[keyof TObject]>;
92
+ /**
93
+ * @internal
94
+ */
95
+ export type _PartialObject<T> = Partial<T>;
96
+ /**
97
+ * @internal
98
+ */
99
+ export type _ValueKeyIteratee<T> = ((value: T, key: string) => _NotVoid) | _IterateeShorthand<T>;
100
+ /**
101
+ * @internal
102
+ */
103
+ export type _NumericDictionary<T> = {
104
+ [index: number]: T;
105
+ };
106
+ /**
107
+ * @internal
108
+ */
109
+ export type _ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | _IterateeShorthand<T>;
110
+ /**
111
+ * @internal
112
+ */
113
+ export type _Function0<R> = () => R;
114
+ /**
115
+ * @internal
116
+ */
117
+ export type _Function1<T1, R> = (t1: T1) => R;
118
+ /**
119
+ * @internal
120
+ */
121
+ export type _Function2<T1, T2, R> = (t1: T1, t2: T2) => R;
122
+ /**
123
+ * @internal
124
+ */
125
+ export type _Function3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R;
126
+ /**
127
+ * @internal
128
+ */
129
+ export type _Function4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R;
130
+ /**
131
+ * @internal
132
+ */
133
+ export type _Comparator<T> = (a: T, b: T) => boolean;
70
134
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/_/types.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;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,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { _List } from "./types.js";
2
+ /**
3
+ * Creates an array of unique values, in order, from all given arrays using SameValueZero for equality
4
+ * comparisons. Only array-like objects are inspected; other arguments, strings included, are skipped.
5
+ *
6
+ * @param arrays - The arrays to inspect.
7
+ * @returns Returns the new array of combined values.
8
+ * @internal
9
+ */
10
+ export declare function _union<T>(...arrays: (_List<T> | null | undefined)[]): T[];
11
+ //# sourceMappingURL=union.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../src/_/union.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,CAAC,EAAE,CAezE"}
package/esm/_/union.js ADDED
@@ -0,0 +1,55 @@
1
+ // (C) 2026 GoodData Corporation
2
+ /*!
3
+ * Portions of this file are derived from Lodash.
4
+ * https://github.com/lodash/lodash
5
+ *
6
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
7
+ *
8
+ * Based on Underscore.js, copyright Jeremy Ashkenas,
9
+ * DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
10
+ *
11
+ * Modifications Copyright (c) 2026 GoodData Corporation
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining
14
+ * a copy of this software and associated documentation files (the
15
+ * "Software"), to deal in the Software without restriction, including
16
+ * without limitation the rights to use, copy, modify, merge, publish,
17
+ * distribute, sublicense, and/or sell copies of the Software, and to
18
+ * permit persons to whom the Software is furnished to do so, subject to
19
+ * the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be
22
+ * included in all copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ */
32
+ import { _baseUniq } from "./_baseUniq.js";
33
+ import { _isArrayLike } from "./isArrayLike.js";
34
+ import { _isObjectLike } from "./isObjectLike.js";
35
+ /**
36
+ * Creates an array of unique values, in order, from all given arrays using SameValueZero for equality
37
+ * comparisons. Only array-like objects are inspected; other arguments, strings included, are skipped.
38
+ *
39
+ * @param arrays - The arrays to inspect.
40
+ * @returns Returns the new array of combined values.
41
+ * @internal
42
+ */
43
+ export function _union(...arrays) {
44
+ const values = [];
45
+ for (const array of arrays) {
46
+ if (!_isObjectLike(array) || !_isArrayLike(array)) {
47
+ continue;
48
+ }
49
+ // visited by index, so holes become `undefined` entries
50
+ for (let index = 0; index < array.length; index++) {
51
+ values.push(array[index]);
52
+ }
53
+ }
54
+ return _baseUniq(values);
55
+ }
@@ -0,0 +1,12 @@
1
+ import type { _List } from "./types.js";
2
+ /**
3
+ * Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which
4
+ * only the first occurrence of each element is kept. The order of result values is determined by the
5
+ * order they occur in the array.
6
+ *
7
+ * @param array - The array to inspect.
8
+ * @returns Returns the new duplicate free array.
9
+ * @internal
10
+ */
11
+ export declare function _uniq<T>(array: _List<T> | null | undefined): T[];
12
+ //# sourceMappingURL=uniq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uniq.d.ts","sourceRoot":"","sources":["../../src/_/uniq.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,EAAE,CAMhE"}