UNPKG

typescript-algorithms-and-datastructures

Version:
10 lines (9 loc) 539 B
import SortingComparator from "./CustomTypes/SortingComparator"; export declare class Utils { static range(start: number, end: number, step?: number): number[]; static swapValues<T>(array: T[], from: number, to: number): void; static lt<T>(a: T, b: T): boolean; static gt<T>(a: T, b: T): boolean; static minIndex<T>(array: T[], from?: number, to?: number, comparator?: SortingComparator<T>): number; static findIndexBy<T>(array: T[], comparator: (el: T, index?: number, array?: T[]) => boolean): number; }