UNPKG

@stnekroman/tstools

Version:

Set of handy tools for TypeScript development

10 lines (9 loc) 451 B
import { Functions } from './Functions'; export declare namespace Arrays { function deleteItem<T>(arr: T[], item: T): boolean; function pushAll<T>(dst: T[], src: T[]): T[]; function shuffle<T>(arr: T[]): T[]; function haveIntersection<T>(array1: T[], array2: T[]): boolean; function filterUntil<T>(arr: T[], filter: Functions.Filter<T>, includeLast?: boolean): T[]; function getFirst<T>(itemOrArray: T | T[]): T | undefined; }