guard
@iota/wallet-standard / guard
Function: guard()
guard(
callback):void
Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/wallet/lib/types/util.d.ts:86
Call a callback function, catch an error if it throws, and log the error without rethrowing.
Parameters
callback
() => void
Function to call.
Returns
void