payload-is
Version:
A comprehensive TypeScript/JavaScript type checking library providing functions to check data types, collections, primitives, and built-in objects
15 lines (11 loc) • 342 B
JavaScript
;
var type = require('./type.cjs');
function isGenerator(payload) {
return type.getTag(payload) === "Generator";
}
function isAsyncGenerator(payload) {
return type.getTag(payload) === "AsyncGenerator";
}
exports.isAsyncGenerator = isAsyncGenerator;
exports.isGenerator = isGenerator;
//# sourceMappingURL=generator.cjs.map