UNPKG

@wireapp/commons

Version:

Collection of common components that are used across Wire web applications.

9 lines 589 B
import * as TypeUtil from './TypeUtil'; export declare function chunk<T>(array: T[], chunkSize: number): T[][]; export declare function getDeduplicatedUnion<T>(array1: T[], array2: T[]): T[]; export declare function getDifference<T>(array1: T[], array2: T[]): T[]; export declare function getIntersection<T>(array1: T[], array2: T[]): T[]; export declare function removeDuplicates<T>(array: T[]): T[]; export declare const flatten: <T>(arrays: T[][]) => T[]; export declare function filterFalsy<T>(value: T): value is Exclude<T, TypeUtil.FalsyType>; //# sourceMappingURL=ArrayUtil.d.ts.map