export type Predicate = (item: TInput, index: number, array: Array) => boolean;