Documentation / Animatable / applyDictTo
applyDictTo()
ts
function applyDictTo<T1, T2>(base, toApply): T1 & T2;Defined in: Animate/Animatable.ts:281
Applies the dictionary toApply to the base dictionary base, modifying the base dictionary in place.
Type Parameters
T1
T1 extends object
T2
T2 extends object
Parameters
base
T1
toApply
undefined | T2
Returns
T1 & T2
The base dictionary
Example
ts
base = {a: 1, b: 2, c: 3}
toApply = {a: 0}
applyDictTo(base, toApply) // base == {a: 0, b: 2, c: 3}