Files
2026-02-25 00:50:23 +05:30

9 lines
209 B
TypeScript

import type {IntoInterator} from './types';
type PredicateFunction<T> = (item: T) => boolean;
export default function find<T>(
target: IntoInterator<T>,
predicate: PredicateFunction<T>
): T | undefined;