MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / hasFunction

Method hasFunction

lib.commonjs/abi/interface.js:443–445  ·  view source on GitHub ↗

* Returns true if %%key%% (a function selector, function name or * function signature) is present in the ABI. * * In the case of a function name, the name may be ambiguous, so * accessing the [[FunctionFragment]] may require refinement.

(key)

Source from the content-addressed store, hash-verified

441 * accessing the [[FunctionFragment]] may require refinement.
442 */
443 hasFunction(key) {
444 return !!this.#getFunction(key, null, false);
445 }
446 /**
447 * Get the [[FunctionFragment]] for %%key%%, which may be a function
448 * selector, function name or function signature that belongs to the ABI.

Callers 1

constructorMethod · 0.45

Calls 1

#getFunctionMethod · 0.95

Tested by

no test coverage detected