@hardlydifficult/collections 1.0.10 → 1.0.11
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ console.log(groupByDepth(paths));
|
|
|
29
29
|
|
|
30
30
|
## Array Chunking
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
The `chunk` function splits an array into subarrays of a specified maximum size.
|
|
33
33
|
|
|
34
34
|
### `chunk`
|
|
35
35
|
|
|
@@ -59,11 +59,11 @@ console.log(chunk([1, 2, 3], 5));
|
|
|
59
59
|
|
|
60
60
|
## Path Depth Grouping
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
The `groupByDepth` function groups filesystem paths by their slash-delimited depth, returning groups sorted deepest-first for bottom-up directory processing.
|
|
63
63
|
|
|
64
64
|
### `groupByDepth`
|
|
65
65
|
|
|
66
|
-
Groups path strings by
|
|
66
|
+
Groups path strings by `/`-separated depth, sorted deepest-first.
|
|
67
67
|
|
|
68
68
|
**Signature:**
|
|
69
69
|
```typescript
|