Methods
get
- get<TValue, TDefault>(obj: T, name: string, defaultValue?: TDefault): TValue | TDefault
-
Type parameters
Parameters
-
obj: T
-
name: string
-
Optional defaultValue: TDefault
Returns TValue
|
TDefault
The value.
has
- has(obj: T, name: string): boolean
-
Parameters
Returns boolean
Contains value or not.
set
- set<TValue>(obj: T, name: string, value: TValue): this
-
Type parameters
Parameters
-
obj: T
-
name: string
-
value: TValue
Returns this
A cache for objects.