commit | 496fab79cff565a5fe9c76569e8c2b982ffe7fc8 | [log] [tgz] |
---|---|---|
author | Kian Jamali <kjamali@google.com> | Thu Jun 22 22:55:53 2023 +0000 |
committer | Kian Jamali <kjamali@google.com> | Thu Jun 22 22:56:13 2023 +0000 |
tree | 64cc662220350c4891174ed265ff713ebf94a9d0 | |
parent | dab259f5c18a6ef2246809379dbb678491b6859e [diff] |
Fixing a bug in index.js Change-Id: I780911777af2ff3aada08f0abc12b0ff3c12c333
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