/** * Calls a defined callback function on each key:value of a object, * and returns a object contains the result. */ export declare function mapObject(object: Record, callbackfn: (value: T, key?: string, object?: Record) => U): Record; export declare function indexOf(array: T[]): number[]; /** * @example [[1, 2, 3], ['a', 'b', 'c']] => [[1, 'a'], [2, 'b'], [3, 'c']] */ export declare function transpose(matrix: T[][]): T[][]; export declare function firstOf(array: T[]): T; export declare function lastOf(array: T[]): T; export declare function isFlatArray(array: (T | T[])[]): array is T[]; export declare function unique(array: T[]): T[]; export declare function divide(array: T[], callbackfn: (item: T) => boolean): [T[], T[]]; /** * get all combinations of two elements in an array * @example [1, 2, 3] => [[1], [2], [3], [1, 2], [1, 3], [2, 3], [1, 2, 3]] * @param array * @returns */ export declare function combine(array: T[]): T[][];