1 | export declare function firstExistingValue<A>(...values: A[]): A | null;
|
2 |
|
3 | export declare function anyExists(values: any[]): boolean;
|
4 | export declare function existsAndNotEmpty<T>(value?: T[]): boolean;
|
5 | export declare function last<T>(arr: T[]): T;
|
6 | export declare function last<T extends Node>(arr: NodeListOf<T>): T;
|
7 | export declare function areEqual<T>(a?: T[] | null, b?: T[] | null, comparator?: (a: T, b: T) => boolean): boolean;
|
8 |
|
9 | export declare function compareArrays(array1?: any[], array2?: any[]): boolean;
|
10 |
|
11 | export declare function shallowCompare(arr1: any[], arr2: any[]): boolean;
|
12 | export declare function sortNumerically(array: number[]): number[];
|
13 | export declare function removeRepeatsFromArray<T>(array: T[], object: T): void;
|
14 | export declare function removeFromArray<T>(array: T[], object: T): void;
|
15 | export declare function removeAllFromArray<T>(array: T[], toRemove: T[]): void;
|
16 | export declare function insertIntoArray<T>(array: T[], object: T, toIndex: number): void;
|
17 | export declare function insertArrayIntoArray<T>(dest: T[], src: T[], toIndex: number): void;
|
18 | export declare function moveInArray<T>(array: T[], objectsToMove: T[], toIndex: number): void;
|
19 | export declare function includes<T>(array: T[], value: T): boolean;
|
20 | export declare function flatten(arrayOfArrays: any[]): any[];
|
21 | export declare function pushAll<T>(target: T[], source: T[]): void;
|
22 | export declare function toStrings<T>(array: T[]): ((string | null)[]) | null;
|
23 | export declare function findIndex<T>(collection: T[], predicate: (item: T, idx: number, collection: T[]) => boolean): number;
|
24 | export declare function fill(collection: any[], value?: any, start?: number, end?: number): any[];
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export declare function every<T>(list: T[], predicate: (value: T, index: number) => boolean): boolean;
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export declare function some<T>(list: T[], predicate: (value: T, index: number) => boolean): boolean;
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | export declare function forEach<T>(list: T[], action: (value: T, index: number) => void): void;
|
43 | export declare function forEachReverse<T>(list: T[], action: (value: T, index: number) => void): void;
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare function map<T, V>(list: T[], process: (value: T, index: number) => V): V[] | null;
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | export declare function filter<T>(list: T[], predicate: (value: T, index: number) => boolean): T[] | null;
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | export declare function reduce<T, V>(list: T[], step: (acc: V, value: T, index: number) => V, initial: V): V | null;
|
64 |
|
65 | export declare function forEachSnapshotFirst<T>(list: T[], callback: (item: T) => void): void;
|