Functions
ensureArray
- ensureArray<T>(val: T | T[] | undefined): T[] | undefined
-
Type parameters
Parameters
Returns T[] | undefined
normalizeKey
- normalizeKey<ObjT, KeyT>(fn: (ex: ObjT[KeyT]) => ObjT[KeyT], key: KeyT, obj: ObjT): ObjT
-
Type parameters
-
ObjT
-
KeyT: string | number | symbol
Parameters
-
fn: (ex: ObjT[KeyT]) => ObjT[KeyT]
-
- (ex: ObjT[KeyT]): ObjT[KeyT]
-
Parameters
Returns ObjT[KeyT]
-
key: KeyT
-
obj: ObjT
Returns ObjT
toEpochTimestamp
- toEpochTimestamp(date: number | Date | undefined): number | undefined
-
Parameters
-
date: number | Date | undefined
Returns number | undefined