UNPKG

iterize

Version:

Use JavaScript Iterator, Easily

5 lines (4 loc) 265 B
import { IterableProtocol } from './commons/types'; declare function take(predicate: number, iter: IterableProtocol): IterableIterator<any>; declare function takeWhile(predicate: Function, iter: IterableProtocol): IterableIterator<any>; export { take, takeWhile };