@stacksjs/arrays 0.68.1 → 0.69.2
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/dist/helpers.d.ts +5 -5
- package/package.json +3 -5
package/dist/helpers.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ export declare function mergeArrayable<T>(...args: Nullable<Arrayable<T>>[]): Ar
|
|
|
6
6
|
export declare type PartitionFilter<T> = (i: T, idx: number, arr: readonly T[]) => any
|
|
7
7
|
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>): [T[], T[]];
|
|
8
8
|
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>): [T[], T[], T[]];
|
|
9
|
-
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T
|
|
10
|
-
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T>, f4: PartitionFilter<T
|
|
11
|
-
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T>, f4: PartitionFilter<T>, f5: PartitionFilter<T
|
|
12
|
-
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T>, f4: PartitionFilter<T>, f5: PartitionFilter<T>, f6: PartitionFilter<T
|
|
9
|
+
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T>): [T[], T[], T[], T[]];
|
|
10
|
+
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T>, f4: PartitionFilter<T>): [T[], T[], T[], T[], T[]];
|
|
11
|
+
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T>, f4: PartitionFilter<T>, f5: PartitionFilter<T>): [T[], T[], T[], T[], T[], T[]];
|
|
12
|
+
export declare function partition<T>(array: readonly T[], f1: PartitionFilter<T>, f2: PartitionFilter<T>, f3: PartitionFilter<T>, f4: PartitionFilter<T>, f5: PartitionFilter<T>, f6: PartitionFilter<T>): [T[], T[], T[], T[], T[], T[], T[]];
|
|
13
13
|
export declare function partition<T>(array: readonly T[], ...filters: PartitionFilter<T>[]): any;
|
|
14
14
|
export declare function uniq<T>(array: readonly T[]): T[];
|
|
15
15
|
export declare function unique<T>(array: readonly T[]): T[];
|
|
16
|
-
export declare function uniqueBy<T>(array: readonly T[], equalFn: (a: any, b: any)
|
|
16
|
+
export declare function uniqueBy<T>(array: readonly T[], equalFn: (a: any, b: any)): T[];
|
|
17
17
|
export declare function last(array: readonly []): undefined;
|
|
18
18
|
export declare function last<T>(array: readonly T[]): T;
|
|
19
19
|
export declare function last<T>(array: readonly T[]): T | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/arrays",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.69.2",
|
|
5
5
|
"description": "The Stacks array utilities.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -41,10 +41,8 @@
|
|
|
41
41
|
"test": "bun test",
|
|
42
42
|
"prepublishOnly": "bun run build"
|
|
43
43
|
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@stacksjs/utils": "0.67.0"
|
|
46
|
-
},
|
|
47
44
|
"devDependencies": {
|
|
48
|
-
"@stacksjs/development": "0.
|
|
45
|
+
"@stacksjs/development": "0.69.2",
|
|
46
|
+
"@stacksjs/utils": "0.69.2"
|
|
49
47
|
}
|
|
50
48
|
}
|