UNPKG

@walts81/linq-ts

Version:

Typescript/Javascript LINQ implementation library

7 lines (6 loc) 234 B
declare global { interface Array<T> { first(this: Array<T>, expression?: (item: T, index?: number) => boolean): T; } } export declare function first<T>(this: T[], expression?: (item: T, index?: number) => boolean): T;