@thi.ng/arrays 2.8.4 → 2.8.5

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-01T15:22:50Z
3
+ - **Last updated**: 2024-03-02T14:05:52Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -127,6 +127,8 @@ queries using `binarySearch()`.
127
127
  - `bsEQ()` - Merely syntax sugar, casting any non-found result indices to -1
128
128
 
129
129
  ```ts
130
+ import { binarySearch, bsGT, bsLT } from "@thi.ng/arrays";
131
+
130
132
  const src = [10, 20, 30, 40];
131
133
 
132
134
  bsLT(binarySearch(src, 25))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/arrays",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "description": "Array / Arraylike utilities",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -165,5 +165,5 @@
165
165
  "thi.ng": {
166
166
  "year": 2018
167
167
  },
168
- "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
168
+ "gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
169
169
  }
package/swizzle.d.ts CHANGED
@@ -21,6 +21,8 @@ import type { Fn } from "@thi.ng/api";
21
21
  * result will always be in array form.
22
22
 
23
23
  * ```ts
24
+ * import { swizzle } from "@thi.ng/arrays";
25
+ *
24
26
  * swizzle(["a", "c", "b"])({a: 1, b: 2, c: 3}) // [ 1, 3, 2 ]
25
27
  * ```
26
28
  *