Methods
Static escapeRegExp
- escapeRegExp(text: string): string
-
Parameters
Returns string
Static flattenDate
- flattenDate(d: Date): Date
Static get
- get(arr: any, path?: string): any
-
Parameters
-
arr: any
-
path: string = null
Returns any
Static interpolate
- interpolate(msg: string, parameter: {}): string
-
Parameters
-
msg: string
-
parameter: {}
Returns string
Static isObject
- isObject(o: any): boolean
-
Parameters
Returns boolean
Static merge
- merge(...args: any[]): any
Static resolveByClassName
- resolveByClassName<T>(objs: T[]): {}
-
Type parameters
Parameters
Returns {}
-
[entityType: string]: T[]
Static set
- set(arr: any, path: string | any[], value: any): boolean
-
Parameters
-
arr: any
-
path: string | any[]
-
value: any
Returns boolean
Static splitTyped
- splitTyped(arr: string, sep?: string): any[]
-
Parameters
-
arr: string
-
sep: string = '.'
Returns any[]
Static uniqArr
- uniqArr(res: any[]): any[]
Static unique_array
- unique_array(arr: any[]): any[]
Static wait
- wait(time: number): Promise<any>
-
Parameters
Returns Promise<any>
Static walk
- walk(root: any, fn: (v: WalkValues) => void): void
-
Parameters
-
root: any
-
fn: (v: WalkValues) => void
Returns void
https://stackoverflow.com/questions/1960473/unique-values-in-an-array