Methods
isIterator(value) → {Boolean}
Returns if a value is an iterator.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
- Source:
- See:
Returns:
true if value is an iterator
- Type
- Boolean
Example
if( isIterator(val) ){
return val.next().value;
}