MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / isObject

Function isObject

app/core/RPCMethods/eth_sendTransaction.ts:25–27  ·  view source on GitHub ↗

* A type guard for RuntimeObject. * * TODO: replace this with `isObject` from `@metamask/utils` * * @param value - The value to check. * @returns Whether the specified value has a runtime type of `object` and is * neither `null` nor an `Array`.

(value: unknown)

Source from the content-addressed store, hash-verified

23 * neither `null` nor an `Array`.
24 */
25function isObject(value: unknown): value is RuntimeObject {
26 return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
27}
28
29/**
30 * A type guard for ensuring an object has a property.

Callers 15

eth_sendTransactionFunction · 0.70
fetchNpmTarballFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50
migrateFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected