You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1902,7 +1902,7 @@ Returns the duplicate values from the map.
1902
1902
public function duplicates( string $col = null ) : self
1903
1903
```
1904
1904
1905
-
*@param**string|null**`$col` Keyof the nested array or object to check for
1905
+
*@param**\Closure|string|null**`$col` Key, path of the nested array or anonymous function with ($item, $key) parameters returning the value for comparison
1906
1906
*@return**self<int|string,mixed>** New map
1907
1907
1908
1908
For nested arrays, you have to pass the name of the column of the nested array which
* This does also work for multi-dimensional arrays by passing the keys
1370
1372
* of the arrays separated by the delimiter ("/" by default), e.g. "key1/key2/key3"
@@ -1373,13 +1375,27 @@ public function dump( ?callable $callback = null ) : self
1373
1375
*
1374
1376
* The keys are preserved using this method.
1375
1377
*
1376
-
* @param string|null $key Key or path of the nested array or object to check for
1378
+
* @param \Closure|string|null $col Key, path of the nested array or anonymous function with ($item, $key) parameters returning the value for comparison
0 commit comments