@williamthorsen/toolbelt.arrays 3.3.3 → 3.3.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
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [arrays-v3.3.5] - 2026-03-19
6
+
7
+ ### Formatting
8
+
9
+ - Fmt: Format changelogs
10
+
5
11
  ## [strings-v3.1.1] - 2026-03-10
6
12
 
7
13
  ### Dependencies
package/dist/esm/.cache CHANGED
@@ -1 +1 @@
1
- 120737769e223a66a9d47692fa9ab599ecbc60ceb7cd4b10ec03e2ae955697ca
1
+ 9bf15adf9305be17f46d555787d2b674459d9d31d8d82778d123e61fab3844d5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/toolbelt.arrays",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "description": "API",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/williamthorsen/toolbelt/tree/main/packages/arrays#readme",
@@ -29,8 +29,8 @@
29
29
  "CHANGELOG.md"
30
30
  ],
31
31
  "dependencies": {
32
- "@williamthorsen/toolbelt.guards": "3.1.2",
33
- "@williamthorsen/toolbelt.numbers": "4.3.2"
32
+ "@williamthorsen/toolbelt.guards": "3.1.4",
33
+ "@williamthorsen/toolbelt.numbers": "4.3.4"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=24.0.0"
@@ -1 +0,0 @@
1
- export declare function getDuplicates<T>(items: Iterable<T>): T[];
@@ -1,15 +0,0 @@
1
- function getDuplicates(items) {
2
- const duplicates = /* @__PURE__ */ new Set();
3
- const seen = /* @__PURE__ */ new Set();
4
- for (const item of items) {
5
- if (seen.has(item)) {
6
- duplicates.add(item);
7
- } else {
8
- seen.add(item);
9
- }
10
- }
11
- return [...duplicates];
12
- }
13
- export {
14
- getDuplicates
15
- };