feat(router): implement redirectTo
This commit is contained in:
@ -28,6 +28,10 @@ export function first<T>(a: T[]): T|null {
|
||||
return a.length > 0 ? a[0] : null;
|
||||
}
|
||||
|
||||
export function last<T>(a: T[]): T|null {
|
||||
return a.length > 0 ? a[a.length - 1] : null;
|
||||
}
|
||||
|
||||
export function and(bools: boolean[]): boolean {
|
||||
return bools.reduce((a, b) => a && b, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user