add support for is.generator & is.generatorFunction
This commit is contained in:
parent
103c5afe6f
commit
7fcd993232
3 changed files with 22 additions and 1 deletions
|
|
@ -78,6 +78,9 @@ Keep in mind that [functions are objects too](https://developer.mozilla.org/en-U
|
|||
|
||||
Returns `true` for any object with a `.then()` and `.catch()` method. Prefer this one over `.nativePromise()` as you usually want to allow userland promise implementations too.
|
||||
|
||||
##### .generator(value)
|
||||
##### .generatorFunction(value)
|
||||
|
||||
##### .map(value)
|
||||
##### .set(value)
|
||||
##### .weakMap(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue