Added cache method for generators and new logging method for chains

This commit is contained in:
2023-12-14 21:48:46 +02:00
parent ee3d9a63e9
commit afa6457f88
7 changed files with 107 additions and 12 deletions

View File

@ -87,4 +87,6 @@ export function filterObject(
}
export const GeneratorType = (function*(){yield undefined;}).constructor;
export const GeneratorIteratorType = (function*(){yield undefined;}).prototype.constructor;
export const GeneratorIteratorType = (function*(){yield undefined;}).prototype.constructor;
export const isGenerator = (v:any) => Object.prototype.toString.call(v) === '[object Generator]';
export const isGeneratorFunction = (v:any) => Object.prototype.toString.call(v) === '[object GeneratorFunction]';