Functions
buildPath
- buildPath(tokens: (string | number)[]): string
-
Parameters
-
tokens: (string | number)[]
Returns string
containWildcardToken
- containWildcardToken(path: string): boolean
-
Parameters
Returns boolean
escapePath
- escapePath(path: string): string
-
Parameters
Returns string
forEach
- forEach(data: any, path: DotKey, iteratee: function, options?: DotGetOptions): void
-
Parameters
-
data: any
-
path: DotKey
-
iteratee: function
-
- (value: any, key: DotKey, context: any, path: string, data: any | any[]): boolean | void
-
Parameters
-
value: any
-
key: DotKey
-
context: any
-
path: string
-
data: any | any[]
Returns boolean
|
void
-
Returns void
get
- get(data: any, path: DotKey, value?: any | undefined, options?: DotGetOptions): any
-
Parameters
-
data: any
-
path: DotKey
-
Default value value: any | undefined = undefined
-
Returns any
has
- has(data: any, path: DotKey): boolean
-
Parameters
Returns boolean
map
- map(data: any, path: DotKey, iteratee: function, options?: DotGetOptions): any[]
-
Parameters
-
data: any
-
path: DotKey
-
iteratee: function
-
- (value: any, key: DotKey, context: any, path: string, data: any | any[]): any
-
Parameters
-
value: any
-
key: DotKey
-
context: any
-
path: string
-
data: any | any[]
Returns any
-
Returns any[]
matchPath
- matchPath(pathA: string, pathB: string): boolean
-
Parameters
-
pathA: string
-
pathB: string
Returns boolean
remove
- remove(data: any, path: DotKey): any
set
- set(data: any, path: DotKey, value: any): any
-
Parameters
-
data: any
-
path: DotKey
-
value: any
Returns any
tokenize
- tokenize(str: string): Tokens
-
Parameters
Returns Tokens
Build path from Tokens like array