@tolki/obj 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -48,7 +48,7 @@ The return types follow the same split. `dataGet` is typed as the two packages'
48
48
 
49
49
  ### Importing the Package
50
50
 
51
- You can import individual functions for better tree-shaking or the entire package (not recommended). On the docs site, each tab below imports from its own package and checks one small call:
51
+ You can import individual functions or the package as a namespace. Both tree-shake the same way. On the docs site, each tab below imports from its own package and checks one small call:
52
52
 
53
53
  ```js [@tolki/obj]
54
54
  import { get } from "@tolki/obj";
@@ -57,9 +57,19 @@ get({ desk: { price: 100 } }, "desk.price");
57
57
  // => 100
58
58
  ```
59
59
 
60
- Import only the functions you use. Importing the entire package with `import * as Arr from "@tolki/arr"` is not recommended: it can pull every function into your bundle, even the ones you never call, which makes the bundles larger. Importing individual functions lets your build ship only the code that runs.
60
+ Importing the package as a namespace, as in `import * as Arr from "@tolki/arr"`, tree-shakes the same way when you read its members by name, such as `Arr.get(...)`: your bundle holds only the members you use. Passing the namespace object around, or reading a computed member such as `Arr[name]`, keeps every function. See [Bundling and Tree-Shaking](https://tolki.abe.dev/tree-shaking.html#namespace-imports).
61
61
 
62
- However, if you are working on a backend project where bundle size is not a concern, importing the entire package can be more convenient.
62
+ ### Bundling
63
+
64
+ A helper call whose result nothing uses drops out of your bundle in Vite (Rolldown), Rollup, webpack and Rspack, because the helpers are marked as free of side effects. This holds for the `data*` helpers as it does for `@tolki/arr` and `@tolki/obj`, including a call at the top level of a module.
65
+
66
+ esbuild doesn't follow that mark across files, so it keeps the call unless the call site says it is safe to remove (see [Bundling and Tree-Shaking](https://tolki.abe.dev/tree-shaking.html)):
67
+
68
+ ```typescript
69
+ export const prices = /* @__PURE__ */ dataPluck(products, "price");
70
+ ```
71
+
72
+ `pop`, `shift`, `unshift` and `splice`, and `dataPop`, `dataShift`, `dataUnshift` and `dataSplice`, can change the data you pass, so a call to them is always kept.
63
73
 
64
74
  ### How to read the utilities list
65
75
 
package/dist/obj.d.ts CHANGED
@@ -162,7 +162,7 @@ export declare function boolean(data: unknown, key: PathKey, defaultValue?: Defa
162
162
  * A Map is chunked in its insertion order, so each chunk holds the entries PHP's would.
163
163
  * A chunk is a plain object, so the integer keys inside one still enumerate ascending.
164
164
  *
165
- * @see Collection::chunk — `packages/collection/stubs/Collection.php:1533`.
165
+ * @see Collection::chunk — `packages/collection/stubs/Collection.php:1543`.
166
166
  * Wraps `array_chunk`; `preserveKeys` defaults to `true`.
167
167
  *
168
168
  * @param data - The record or Map to chunk
@@ -191,7 +191,7 @@ export declare function chunk(data: unknown, size: number, preserveKeys?: boolea
191
191
  * A Map is walked in its insertion order, but the chunk the callback gets is a plain object that lists integer keys
192
192
  * first, ascending, so `Object.values(chunk).at(-1)` is the item added last only when its key is listed last.
193
193
  *
194
- * @see Collection::chunkWhile — `packages/collection/stubs/Collection.php:1554`, which runs
194
+ * @see Collection::chunkWhile — `packages/collection/stubs/Collection.php:1564`, which runs
195
195
  * `LazyCollection::chunkWhile`. Keys are preserved inside each chunk.
196
196
  *
197
197
  * @param data - The record or Map to chunk
@@ -215,7 +215,7 @@ export declare function chunkWhile(data: unknown, callback: (value: unknown, key
215
215
  *
216
216
  * A Map is walked in its insertion order, so the items compared as adjacent are the ones PHP compares.
217
217
  *
218
- * @see EnumeratesValues::chunkBy — `packages/collection/stubs/EnumeratesValues.php:939`.
218
+ * @see EnumeratesValues::chunkBy — `packages/collection/stubs/EnumeratesValues.php:941`.
219
219
  * Adjacent values compare with PHP's `==`, so `1` and `"1"` share a chunk.
220
220
  *
221
221
  * @param data - The record or Map to chunk
@@ -261,9 +261,9 @@ export declare function collapse(data: unknown): Record<string | number, unknown
261
261
  /**
262
262
  * Combine two objects into one, using the values from the first object as
263
263
  * keys, mirroring PHP's `array_combine()` / `Collection::combine()`
264
- * (`Collection.php:936`).
264
+ * (`Collection.php:946`).
265
265
  *
266
- * @see Collection::combine — `packages/collection/stubs/Collection.php:936`.
266
+ * @see Collection::combine — `packages/collection/stubs/Collection.php:946`.
267
267
  * Wraps `array_combine`.
268
268
  *
269
269
  * Declared-type limits, pinned in `obj-residuals.test-d.ts`: a literal `-0` key types as "0" and an
@@ -369,7 +369,7 @@ export declare function undot(data: unknown): Record<string, unknown>;
369
369
  * The first object is the data, read by its own entries (a list by its indices); each later
370
370
  * one is read the way `arrayableItems` reads it, so a Collection-like operand unwraps.
371
371
  *
372
- * @see Collection::union — `packages/collection/stubs/Collection.php:947`.
372
+ * @see Collection::union — `packages/collection/stubs/Collection.php:957`.
373
373
  * Uses PHP's `+` operator (key union: left keys win), not `array_merge`.
374
374
  *
375
375
  * @param objects - The objects to union.
@@ -383,8 +383,9 @@ export declare function union<T extends readonly unknown[]>(...objects: T): Simp
383
383
  * integer keys are renumbered after the items, even when there are none, as `array_unshift` does.
384
384
  * A Map is renumbered in its insertion order and rewritten in place, integer keys as numbers, even a `ReadonlyMap`.
385
385
  *
386
- * @see Collection::unshift — `packages/collection/stubs/Collection.php:1096`. Wraps `array_unshift`; mutates.
386
+ * @see Collection::unshift — `packages/collection/stubs/Collection.php:1106`. Wraps `array_unshift`; mutates.
387
387
  *
388
+ * @sideEffects mutates - Rewrites the given object or Map with the new items in front.
388
389
  * @param items - The items to prepend; the first is the target object or Map, mutated in place when object-accessible.
389
390
  * @returns The same object or Map reference, mutated (or a new object when the first item isn't object-accessible).
390
391
  *
@@ -599,7 +600,7 @@ export declare function flattenDot(data: unknown, depth?: number): Record<string
599
600
  * A Map is flipped in its insertion order, so when two keys hold the same value, the key
600
601
  * PHP reaches last is the one kept, and each key is the one PHP stores for it.
601
602
  *
602
- * @see Collection::flip — `packages/collection/stubs/Collection.php:464`.
603
+ * @see Collection::flip — `packages/collection/stubs/Collection.php:474`.
603
604
  *
604
605
  * @param data - The object or Map of items to flip
605
606
  * @returns The data items flipped
@@ -1021,9 +1022,10 @@ export declare function pluck(data: unknown, value: string | readonly (string |
1021
1022
  * A Map is popped from the end of its insertion order and rewritten in place, its survivors keeping their keys
1022
1023
  * (integer keys as numbers), even if typed `ReadonlyMap`.
1023
1024
  *
1024
- * @see Collection::pop — `packages/collection/stubs/Collection.php:1030`.
1025
+ * @see Collection::pop — `packages/collection/stubs/Collection.php:1040`.
1025
1026
  * Mirrors `array_pop`, called `$count` times from the end; mutates.
1026
1027
  *
1028
+ * @sideEffects mutates - Deletes the popped keys from the given object, or rewrites the given Map.
1027
1029
  * @param data - The object or Map to pop items from. Mutated in place.
1028
1030
  * @param count - The number of items to pop. Defaults to 1; a fraction is dropped, and NAN pops every item.
1029
1031
  * @returns The popped item(s) or null/empty array if none.
@@ -1255,8 +1257,9 @@ export declare function random(data: unknown, number?: number | string | null, p
1255
1257
  * theirs. A Map is shifted and renumbered in its insertion order and rewritten in place, integer keys as numbers,
1256
1258
  * even if typed `ReadonlyMap`.
1257
1259
  *
1258
- * @see Collection::shift — `packages/collection/stubs/Collection.php:1281`. Mirrors `array_shift`; mutates.
1260
+ * @see Collection::shift — `packages/collection/stubs/Collection.php:1291`. Mirrors `array_shift`; mutates.
1259
1261
  *
1262
+ * @sideEffects mutates - Rewrites the given object or Map without the shifted entries.
1260
1263
  * @param data - The object or Map to shift items from. Mutated in place.
1261
1264
  * @param count - The number of items to shift. Defaults to 1; a fraction is dropped, and NAN shifts every item.
1262
1265
  * @returns The shifted item when count is 1, or null if there was none; an array of the shifted items otherwise.
@@ -1386,11 +1389,11 @@ export declare function skipWhile<T extends object>(data: T, value: ObjectValue<
1386
1389
  export declare function skipWhile(data: unknown, value: AnyValueOr<(value: unknown, key: string | number) => unknown>): Record<string, unknown>;
1387
1390
  /**
1388
1391
  * Slice the underlying object items, preserving keys — `array_slice($items,
1389
- * $offset, $length, true)` (`Collection.php:1382`).
1392
+ * $offset, $length, true)` (`Collection.php:1392`).
1390
1393
  *
1391
1394
  * A Map is sliced by its insertion order, so the offset and length count the items as PHP's array holds them.
1392
1395
  *
1393
- * @see Collection::slice — `packages/collection/stubs/Collection.php:1382`.
1396
+ * @see Collection::slice — `packages/collection/stubs/Collection.php:1392`.
1394
1397
  * Wraps `array_slice($items, $offset, $length, preserveKeys: true)`.
1395
1398
  *
1396
1399
  * @param data - The object or Map to slice
@@ -1539,8 +1542,9 @@ export declare function sortRecursiveDesc(data: unknown): Record<string, unknown
1539
1542
  * `__proto__` entry becomes a real own key. A Map, like a Map replacement, is spliced by its insertion order, and it
1540
1543
  * is rewritten in place, integer keys as numbers, even if typed `ReadonlyMap`.
1541
1544
  *
1542
- * @see Collection::splice — `packages/collection/stubs/Collection.php:1768`. Wraps `array_splice`; mutates.
1545
+ * @see Collection::splice — `packages/collection/stubs/Collection.php:1778`. Wraps `array_splice`; mutates.
1543
1546
  *
1547
+ * @sideEffects mutates - Rewrites the given object or Map with the removed range replaced.
1544
1548
  * @param data - The object or Map to splice. Mutated in place.
1545
1549
  * @param offset - The starting index, by entry order (not by key); a fraction is dropped, as array_splice() drops it
1546
1550
  * @param length - The number of entries to remove, a fraction dropped. Null or none removes everything from offset on.
@@ -1705,11 +1709,11 @@ export declare function reject(data: unknown, callback: (value: unknown, key: st
1705
1709
  * `array_replace()` / `Collection::replace()`.
1706
1710
  *
1707
1711
  * Returns a new object rather than mutating `data`; a `null`/`undefined` replacer
1708
- * is a no-op (`CollectionTest.php:1515`). Writes go through `defineKey` so a
1712
+ * is a no-op (`CollectionTest.php:1517`). Writes go through `defineKey` so a
1709
1713
  * `__proto__` key on `replacerData` becomes a real own key (see `isUnsafeKey`,
1710
1714
  * AGENTS.md:189).
1711
1715
  *
1712
- * @see Collection::replace — `packages/collection/stubs/Collection.php:1183`. Wraps `array_replace`.
1716
+ * @see Collection::replace — `packages/collection/stubs/Collection.php:1193`. Wraps `array_replace`.
1713
1717
  *
1714
1718
  * @param data - The original object to replace items in. Never mutated.
1715
1719
  * @param replacerData - The object or list containing items to replace. `null`/`undefined` is a no-op.
@@ -1725,11 +1729,11 @@ export declare function replace(data: unknown, replacerData: unknown): Record<st
1725
1729
  * `array_replace_recursive()` / `Collection::replaceRecursive()`.
1726
1730
  *
1727
1731
  * Builds a new object at every recursion level rather than mutating `data`. A
1728
- * `null`/`undefined` replacer is a no-op (`CollectionTest.php:1557`). Only
1732
+ * `null`/`undefined` replacer is a no-op (`CollectionTest.php:1559`). Only
1729
1733
  * `__proto__` is skipped on `replacerData` — the sole prototype-pollution hazard
1730
1734
  * (see `isUnsafeKey`, AGENTS.md:189); `constructor`/`prototype` write normally.
1731
1735
  *
1732
- * @see Collection::replaceRecursive — `packages/collection/stubs/Collection.php:1194`. Wraps `array_replace_recursive`.
1736
+ * @see Collection::replaceRecursive — `packages/collection/stubs/Collection.php:1204`. Wraps `array_replace_recursive`.
1733
1737
  *
1734
1738
  * @param data - The original object to replace items in. Never mutated. `null`/`undefined` is treated as empty.
1735
1739
  * @param replacerData - The object containing items to replace. `null`/`undefined` is a no-op.
@@ -1748,7 +1752,7 @@ export declare function replaceRecursive(data: unknown, replacerData: unknown):
1748
1752
  *
1749
1753
  * A Map is reversed from its insertion order, and its integer keys are renumbered over that reversed order.
1750
1754
  *
1751
- * @see Collection::reverse — `packages/collection/stubs/Collection.php:1204`. Wraps `array_reverse($items, true)`.
1755
+ * @see Collection::reverse — `packages/collection/stubs/Collection.php:1214`. Wraps `array_reverse($items, true)`.
1752
1756
  *
1753
1757
  * @param data - The object or Map to reverse.
1754
1758
  * @returns A new object with reversed entries.
@@ -1771,7 +1775,7 @@ export declare function reverse(data: unknown): Record<string, unknown>;
1771
1775
  * keep theirs, though JS lists integer-like keys first. A Map's integer keys are renumbered in its insertion order,
1772
1776
  * and a Map that needs no padding comes back as a record of its entries, keys unchanged.
1773
1777
  *
1774
- * @see Collection::pad — `packages/collection/stubs/Collection.php:1917`. Wraps `array_pad`.
1778
+ * @see Collection::pad — `packages/collection/stubs/Collection.php:1927`. Wraps `array_pad`.
1775
1779
  *
1776
1780
  * @param data - The object or Map to pad.
1777
1781
  * @param size - The desired size of the object after padding. Positive to pad at the end, negative to pad at the beginning.
@@ -1841,7 +1845,7 @@ export declare function whereNotNull(data: unknown): Record<string, unknown>;
1841
1845
  * a fourth makes the third the operator. So a value that may be `boolean` (`unknown`, or a union or type parameter
1842
1846
  * holding it) is written `contains(data, key, "=", value)`. A Map is read in its insertion order.
1843
1847
  *
1844
- * @see Collection::contains — `packages/collection/stubs/Collection.php:196`.
1848
+ * @see Collection::contains — `packages/collection/stubs/Collection.php:206`.
1845
1849
  *
1846
1850
  * @param data - The object or Map to search in.
1847
1851
  * @param value - The value to search for, or the key path when a third argument follows.
@@ -1879,7 +1883,7 @@ export declare function contains<TValue>(data: unknown, key: PathKey | ((value:
1879
1883
  * this is `contains(data, key, true)`: `in_array($key, $items, true)` for a value, and
1880
1884
  * `array_any($items, $key)` for a callback, so a match holding null counts.
1881
1885
  *
1882
- * @see Collection::containsStrict — `packages/collection/stubs/Collection.php:216`.
1886
+ * @see Collection::containsStrict — `packages/collection/stubs/Collection.php:226`.
1883
1887
  *
1884
1888
  * @param data - The object to search in.
1885
1889
  * @param key - The value to search for, or the path to compare when `value` is given.
@@ -1905,7 +1909,7 @@ export declare function containsStrict(data: unknown, key: AnyValueOr<(value: un
1905
1909
  *
1906
1910
  * A Map is walked in its insertion order, so the callback sees its items in PHP's order.
1907
1911
  *
1908
- * @see Collection::filter — `packages/collection/stubs/Collection.php:425`.
1912
+ * @see Collection::filter — `packages/collection/stubs/Collection.php:435`.
1909
1913
  * With a callback, delegates to `Arr::where()`; without one, wraps `array_filter`.
1910
1914
  *
1911
1915
  * @param data - The object or Map to filter.
@@ -1955,7 +1959,7 @@ export declare function wrap<T>(value: T): WrapResult<T>;
1955
1959
  * A Map's keys come back in its insertion order, each the key PHP stores for it, and keys PHP stores as one, such as
1956
1960
  * `1` and `"1"`, are reported once, where the first of them stood.
1957
1961
  *
1958
- * @see Collection::keys — `packages/collection/stubs/Collection.php:793`. Wraps `array_keys`.
1962
+ * @see Collection::keys — `packages/collection/stubs/Collection.php:803`. Wraps `array_keys`.
1959
1963
  *
1960
1964
  * @param data - The object or Map to get keys from.
1961
1965
  * @returns An array of all keys.
@@ -1977,7 +1981,7 @@ export declare function keys(data: unknown): (string | number)[];
1977
1981
  * A Map's values come back in its insertion order, as `array_values` lists the PHP array it stands for; of Map keys
1978
1982
  * PHP stores as one, such as `1` and `"1"`, only the last value is listed, where the first of them stood.
1979
1983
  *
1980
- * @see Collection::values — `packages/collection/stubs/Collection.php:1883`.
1984
+ * @see Collection::values — `packages/collection/stubs/Collection.php:1893`.
1981
1985
  * Wraps `array_values`.
1982
1986
  *
1983
1987
  * @param data - The object or Map to get values from.
@@ -2002,7 +2006,7 @@ export declare function values(data: unknown): unknown[];
2002
2006
  * `phpValueMatch`); unlike `diffAssoc`, a matching key on `other` with a different
2003
2007
  * value does not save the item. `other` is normalized by `arrayableValues`.
2004
2008
  *
2005
- * @see Collection::diff — `packages/collection/stubs/Collection.php:277`. Wraps `array_diff`.
2009
+ * @see Collection::diff — `packages/collection/stubs/Collection.php:287`. Wraps `array_diff`.
2006
2010
  *
2007
2011
  * @param data - The original object.
2008
2012
  * @param other - The object (or array) to compare against.
@@ -2017,7 +2021,7 @@ export declare function diff(data: unknown, other: unknown): Record<string, unkn
2017
2021
  * This is `array_diff_assoc` — unlike `diff`, matching by key+value, not by value
2018
2022
  * alone. A non-accessible `other` is treated as empty, so every entry of `data` survives.
2019
2023
  *
2020
- * @see Collection::diffAssoc — `packages/collection/stubs/Collection.php:300`. Wraps `array_diff_assoc`.
2024
+ * @see Collection::diffAssoc — `packages/collection/stubs/Collection.php:310`. Wraps `array_diff_assoc`.
2021
2025
  *
2022
2026
  * @param data - The original object
2023
2027
  * @param other - The object to diff against
@@ -2032,7 +2036,7 @@ export declare function diffAssoc(data: unknown, other: unknown): Record<string,
2032
2036
  * This is `array_diff_key` — values are ignored entirely; only the key decides.
2033
2037
  * `other` is normalized by `arrayableItems`, so a nullish operand keeps every entry.
2034
2038
  *
2035
- * @see Collection::diffKeys — `packages/collection/stubs/Collection.php:323`. Wraps `array_diff_key`.
2039
+ * @see Collection::diffKeys — `packages/collection/stubs/Collection.php:333`. Wraps `array_diff_key`.
2036
2040
  *
2037
2041
  * @param data - The original object
2038
2042
  * @param other - The object to diff against
@@ -2052,7 +2056,7 @@ export declare function diffKeys(data: unknown, other: unknown): Record<string,
2052
2056
  * This is `array_udiff` — the callback replaces `diff`'s `(string)` cast comparison and
2053
2057
  * reports whether two values are equal. `other` is normalized by `arrayableValues`.
2054
2058
  *
2055
- * @see Collection::diffUsing — `packages/collection/stubs/Collection.php:289`. Wraps `array_udiff`.
2059
+ * @see Collection::diffUsing — `packages/collection/stubs/Collection.php:299`. Wraps `array_udiff`.
2056
2060
  *
2057
2061
  * @param data - The original object
2058
2062
  * @param other - The object to diff against
@@ -2071,7 +2075,7 @@ export declare function diffUsing(data: unknown, other: unknown, callable: (a: u
2071
2075
  * Diff the data object with the given other object using a callback for key comparison.
2072
2076
  * Compares keys using the callback and values using PHP's `(string)` cast rule.
2073
2077
  *
2074
- * @see Collection::diffAssocUsing — `packages/collection/stubs/Collection.php:312`.
2078
+ * @see Collection::diffAssocUsing — `packages/collection/stubs/Collection.php:322`.
2075
2079
  * Wraps `array_diff_uassoc`. Obj-only — `Arr.php` has no equivalent, so there is no `arr.diffAssocUsing`.
2076
2080
  *
2077
2081
  * @param data - The original object
@@ -2092,7 +2096,7 @@ export declare function diffAssocUsing(data: unknown, other: unknown, callback:
2092
2096
  * Diff the data object with the given other object using a callback for key comparison only.
2093
2097
  * Compares keys using the callback and ignores values completely.
2094
2098
  *
2095
- * @see Collection::diffKeysUsing — `packages/collection/stubs/Collection.php:335`.
2099
+ * @see Collection::diffKeysUsing — `packages/collection/stubs/Collection.php:345`.
2096
2100
  * Wraps `array_diff_ukey`. Obj-only — `Arr.php` has no equivalent, so there is no `arr.diffKeysUsing`.
2097
2101
  *
2098
2102
  * @param data - The original object
@@ -2118,7 +2122,7 @@ export declare function diffKeysUsing(data: unknown, other: unknown, callback: (
2118
2122
  * style; folds Laravel's `intersectUsing()` into this parameter). `other` is
2119
2123
  * normalized by `arrayableValues`.
2120
2124
  *
2121
- * @see Collection::intersect — `packages/collection/stubs/Collection.php:663`. Wraps `array_intersect`.
2125
+ * @see Collection::intersect — `packages/collection/stubs/Collection.php:673`. Wraps `array_intersect`.
2122
2126
  *
2123
2127
  * @param data - The original object
2124
2128
  * @param other - The object to intersect with
@@ -2135,7 +2139,7 @@ export declare function intersect(data: unknown, other: unknown, callable?: ((a:
2135
2139
  * This is `array_uintersect`. It is `intersect`'s third parameter under its own name,
2136
2140
  * so the two share one algorithm; the callback reports whether two values are equal.
2137
2141
  *
2138
- * @see Collection::intersectUsing — `packages/collection/stubs/Collection.php:675`.
2142
+ * @see Collection::intersectUsing — `packages/collection/stubs/Collection.php:685`.
2139
2143
  * Wraps `array_uintersect`.
2140
2144
  *
2141
2145
  * @param data - The original object
@@ -2158,7 +2162,7 @@ export declare function intersectUsing(data: unknown, other: unknown, callable:
2158
2162
  * This is `array_intersect_assoc` — unlike `intersect`, `key in other` is required.
2159
2163
  * A non-accessible `data` or `other` is treated as empty, so the result is `{}`.
2160
2164
  *
2161
- * @see Collection::intersectAssoc — `packages/collection/stubs/Collection.php:686`. Wraps `array_intersect_assoc`.
2165
+ * @see Collection::intersectAssoc — `packages/collection/stubs/Collection.php:696`. Wraps `array_intersect_assoc`.
2162
2166
  *
2163
2167
  * @param data - The original object
2164
2168
  * @param other - The object to intersect with
@@ -2173,7 +2177,7 @@ export declare function intersectAssoc(data: unknown, other: unknown): Record<st
2173
2177
  *
2174
2178
  * A non-accessible `data` or `other` is treated as empty, so the result is `{}`.
2175
2179
  *
2176
- * @see Collection::intersectAssocUsing — `packages/collection/stubs/Collection.php:698`. Wraps `array_intersect_uassoc`
2180
+ * @see Collection::intersectAssocUsing — `packages/collection/stubs/Collection.php:708`. Wraps `array_intersect_uassoc`
2177
2181
  *
2178
2182
  * @param data - The original object
2179
2183
  * @param other - The object to intersect with
@@ -2188,7 +2192,7 @@ export declare function intersectAssocUsing(data: unknown, other: unknown, callb
2188
2192
  *
2189
2193
  * A non-accessible `data` or `other` is treated as empty, so the result is `{}`.
2190
2194
  *
2191
- * @see Collection::intersectByKeys — `packages/collection/stubs/Collection.php:709`. Wraps `array_intersect_key`.
2195
+ * @see Collection::intersectByKeys — `packages/collection/stubs/Collection.php:719`. Wraps `array_intersect_key`.
2192
2196
  *
2193
2197
  * @param data - The original object
2194
2198
  * @param other - The object to intersect with