Initial commit
This commit is contained in:
5
node_modules/@11ty/eleventy/src/Util/IsAsyncFunction.js
generated
vendored
Normal file
5
node_modules/@11ty/eleventy/src/Util/IsAsyncFunction.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
const ComparisonAsyncFunction = (async () => {}).constructor;
|
||||
|
||||
export default function isAsyncFunction(fn) {
|
||||
return fn instanceof ComparisonAsyncFunction;
|
||||
}
|
Reference in New Issue
Block a user