Documentation / @blazetrails/activesupport / with
Function: with()
with<
T,R>(obj,attributes,fn):R
Defined in: packages/activesupport/lib/core-ext/object/with.ts:3
Type Parameters
| Type Parameter |
|---|
T extends object |
R |
Parameters
| Parameter | Type |
|---|---|
obj | T |
attributes | Partial<Record<Extract<keyof T, string>, unknown>> |
fn | (obj) => R |
Returns
R