commit | 474ced3816f4d46875d88ecded486a3ebb46b7e5 | [log] [tgz] |
---|---|---|
author | Kian Jamali <kjamali@google.com> | Fri Mar 24 16:25:02 2023 -0400 |
committer | Kian Jamali <kjamali@google.com> | Fri Mar 24 20:33:12 2023 +0000 |
tree | 593fd815fdcd65427243a2428e79c6023eec1d85 |
Initial import of is-generator-function Change-Id: I328570a8971fc4cdfdf762d0f87e5600c5cdced0
Is this a native generator function?
var isGeneratorFunction = require('is-generator-function'); assert(!isGeneratorFunction(function () {})); assert(!isGeneratorFunction(null)); assert(isGeneratorFunction(function* () { yield 42; return Infinity; }));
Simply clone the repo, npm install
, and run npm test