import { RepeatIterator } from './Iterators' ; import { IterableProtocol } from './types' ; function isIterator ( value ) { return value . next !== undefined && value . clone !== undefined ; } function isRepeatIterator ( iterator ) { return iterator instanceof RepeatIterator ; } export { isIterator , isRepeatIterator } ;