Files
homepage-template/node_modules/@11ty/eleventy/src/Util/IsAsyncFunction.js
2024-11-03 17:41:45 +01:00

6 lines
158 B
JavaScript

const ComparisonAsyncFunction = (async () => {}).constructor;
export default function isAsyncFunction(fn) {
return fn instanceof ComparisonAsyncFunction;
}