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