@stackflow/core
Advanced tools
@@ -1,2 +0,2 @@ | ||
| export declare const divideBy: <T>(arr: T[], predicate: (t: T) => boolean) => [T[], T[]]; | ||
| export declare const divideBy: <T, U extends T>(arr: T[], predicate: (t: T) => t is U) => [U[], T[]]; | ||
| //# sourceMappingURL=divideBy.d.ts.map |
+1
-1
| { | ||
| "name": "@stackflow/core", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -64,3 +64,3 @@ import isEqual from "react-fast-compare"; | ||
| }) ?? initialEvents, | ||
| initialPushedEventsByOption as (PushedEvent | StepPushedEvent)[], | ||
| initialPushedEventsByOption, | ||
| ); | ||
@@ -67,0 +67,0 @@ |
@@ -1,6 +0,6 @@ | ||
| export const divideBy = <T>( | ||
| export const divideBy = <T, U extends T>( | ||
| arr: T[], | ||
| predicate: (t: T) => boolean, | ||
| ): [T[], T[]] => { | ||
| const satisfied: T[] = []; | ||
| predicate: (t: T) => t is U, | ||
| ): [U[], T[]] => { | ||
| const satisfied: U[] = []; | ||
| const unsatisfied: T[] = []; | ||
@@ -7,0 +7,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
385791
-0.01%