@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 โ
| Parameter | Type |
|---|---|
v | unknown |
path | string |
f | (x, p) => T |
Returns โ
T | undefined