UNPKG

ix

Version:

The Interactive Extensions for JavaScript

19 lines (15 loc) 460 B
import { IterableX } from '../../iterable/iterablex.js'; import { find } from '../../iterable/find.js'; import { FindOptions } from '../../iterable/findoptions.js'; /** * @ignore */ export function findProto<T>(this: IterableX<T>, options: FindOptions<T>): T | undefined { return find(this, options as any); } IterableX.prototype.find = findProto; declare module '../../iterable/iterablex' { interface IterableX<T> { find: typeof findProto; } }