@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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. 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
- Splits arrays into subarrays of a specified maximum size.
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
- Groups file paths by their slash-separated depth, sorted deepest-first.
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 the number of `/`-separated segments, returning results in descending depth order.
66
+ Groups path strings by `/`-separated depth, sorted deepest-first.
67
67
 
68
68
  **Signature:**
69
69
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardlydifficult/collections",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [