MCPcopy Create free account
hub / github.com/nodejs/node / isAsyncFn

Function isAsyncFn

deps/npm/test/lib/load-all-commands.js:11–11  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

9const BaseCommand = require('../../lib/base-cmd.js')
10
11const isAsyncFn = (v) => typeof v === 'function' && /^\[AsyncFunction:/.test(util.inspect(v))
12
13t.test('load each command', async t => {
14 const counts = {

Callers 1

Calls 2

inspectMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected