Open
Description
I think, tests should pass:
const type = require('type-detect');
const assert = require('assert');
const asyncFn = async () => {};
const generatorFn = function* generator () {};
function getTag(obj) {
return Object.prototype.toString.call(obj).slice(8, -1);
}
assert(type(asyncFn) === getTag(asyncFn));
assert(type(generatorFn) === getTag(generatorFn));
Is it a bug? If not, you should add it to README.