Skip to content

@lelantos-org/sdk / core / opt

Function: opt() โ€‹

ts
function opt<T>(
   v, 
   path, 
   f
): T | undefined;

Defined in: @lelantos-org/sdk/dist/core/decode.d.ts:45

undefined and null both pass through as undefined.

Type Parameters โ€‹

Type Parameter
T

Parameters โ€‹

ParameterType
vunknown
pathstring
f(x, p) => T

Returns โ€‹

T | undefined

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub