Skip to content

Documentation


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 ​

ParameterType
objT
attributesPartial<Record<Extract<keyof T, string>, unknown>>
fn(obj) => R

Returns ​

R