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

Method hasFunction

lib.esm/abi/interface.js:435–437  ·  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

433 * accessing the [[FunctionFragment]] may require refinement.
434 */
435 hasFunction(key) {
436 return !!this.#getFunction(key, null, false);
437 }
438 /**
439 * Get the [[FunctionFragment]] for %%key%%, which may be a function
440 * 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