source:
trip-planner-front/node_modules/rxjs/src/internal/util/isIterable.ts@
84d0fbb
Last change on this file since 84d0fbb was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 246 bytes |
Line | |
---|---|
1 | import { iterator as Symbol_iterator } from '../symbol/iterator'; |
2 | |
3 | /** Identifies an input as being an Iterable */ |
4 | export function isIterable(input: any): input is Iterable<any> { |
5 | return input && typeof input[Symbol_iterator] === 'function'; |
6 | } |
Note:
See TracBrowser
for help on using the repository browser.