projects/aoc-client/aoc-common/aoc-common-misc.ts
Methods |
|
Static deepClone | ||||||
deepClone(o: T)
|
||||||
Type parameters :
|
||||||
Parameters :
Returns :
T
|
Static deepMerge | |||||||||
deepMerge(target: Record
|
|||||||||
Parameters :
Returns :
Record<string, >
|
Static genericEquals |
genericEquals(obj1: any, obj2: any)
|
Generic equals by value (won't work on Map, Set...). Works on basic (value-)types, plain objects, Dates, regexps, functions, and arrays.
Returns :
boolean
|
Static isFunction | ||||||
isFunction(o: any)
|
||||||
Parameters :
Returns :
Function
|
Static isNumeric | ||||||
isNumeric(str: string)
|
||||||
Parameters :
Returns :
boolean
|
Static isPlainObject | ||||||
isPlainObject(value: any)
|
||||||
Parameters :
Returns :
literal type
|
Static resolveValue | ||||||||||||
resolveValue(target: any, path: string | string[])
|
||||||||||||
Resolve value object by a path string, or executing a function passed as argument. If it cannot be resolved, returns null/undefined
Parameters :
Returns :
any
|