feige
2023-09-10 d6ed1287fa23fa25eacf57c0d83d533cb2f2bc45
1
2
3
4
5
6
import { iterator as Symbol_iterator } from '../symbol/iterator';
 
/** Identifies an input as being an Iterable */
export function isIterable(input: any): input is Iterable<any> {
  return input && typeof input[Symbol_iterator] === 'function';
}