tlojs
Version:
The Last One - The last npm package you'll need to install
15 lines (14 loc) • 369 B
TypeScript
export {};
declare global {
interface Array<T> {
select<K>(callback: (item: T) => K): Array<K>;
where(callback: (item: T) => boolean): Array<T>;
distinct(): Array<T>;
first(): T;
firstOrDefault(): T | undefined;
last(): T;
lastOrDefault(): T | undefined;
min(): number;
max(): number;
}
}