Forces any iterable or iterator to become an iterator. Will throw if this is not possible.
import { forceIterator } from 'deleight/generators';const it = forceIterator([1, 2, 3, 4, 5]); Copy
import { forceIterator } from 'deleight/generators';const it = forceIterator([1, 2, 3, 4, 5]);
Forces any iterable or iterator to become an iterator. Will throw if this is not possible.