@stackoverfloweth/prefect-design
Version:
A collection of low-level Vue components.
8 lines (7 loc) • 600 B
TypeScript
export declare function isStrings(array: unknown[]): array is string[];
export declare function reduceToRecord<S, K extends string | number | symbol, V>(array: S[], key: (item: S) => K, value: (item: S) => V): Record<K, V>;
export declare function reduceToMap<S, K, V>(array: S[], key: (item: S) => K, value: (item: S) => V): Map<K, V>;
export declare function asArray<T>(value: T | T[]): T[];
export declare function isArray<T>(value: T | T[]): value is T[];
export declare function sortStringArray(array: string[]): string[];
export declare function toggleArrayValue<T>(array: T[], value: T): T[];