export declare function copy(array: Array, startIndex?: number, endIndex?: number): Array; export declare function isArray(it: any): boolean; /** append the elements from an array to the end of your targetArray */ export declare function append(array: Array, toAppend: Array): void; /** remove the first occurance of the item */ export declare function removeFirst(array: Array, toRemove: T): boolean; /** if exist, remove first occurance, returns true if successful. */ export declare function tryRemoveFirst(array: Array, toRemove: T): boolean; /** check if value exists in the array */ export declare function contains(array: Array, toFind: T): boolean; /** returns an array containing the removed elements */ export declare function removeAt(array: Array, index: number, count?: number): Array; /** removes all elements after the given length. returns the removed items*/ export declare function removeAfter(array: Array, lengthToKeep: number): Array; /** * split an array into chunks according to maxChunkSize * @param array * @param maxChunkSize */ export declare function chunk(array: Array, maxChunkSize: number): Array>; /** if the array is longer than given size, truncates it. * modifies passed in array */ export declare function maxLen(array: Array, maxLength: number): void; //# sourceMappingURL=arrayhelper.d.ts.map