From 934179df74f07af614c7a4b62e4ad276a5284991 Mon Sep 17 00:00:00 2001 From: Kunall Banerjee Date: Thu, 28 Sep 2017 18:51:20 -0400 Subject: [PATCH] update README with usage --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index 0962385..be284c4 100644 --- a/readme.md +++ b/readme.md @@ -78,6 +78,12 @@ 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) + +Returns `true` for any object that implements its own `.next()` and `.throw()` methods and has a function definition for `Symbol.iterator`. + +##### .generatorFunction(value) + ##### .map(value) ##### .set(value) ##### .weakMap(value)