Constructor
new Pathfinder(value)
- Source:
- Since:
- 1.4.0
- Copyright:
- schukai GmbH
Parameters:
Name | Type | Description |
---|---|---|
value |
array | object | Map | Set |
Methods
exists(path) → {bool}
- Source:
- Since:
- 1.4.0
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
Throws:
-
-
unsupported type
- Type
- TypeError
-
-
-
value is not a string
- Type
- TypeError
-
-
-
value is not an integer
- Type
- TypeError
-
Returns:
- Type
- bool
getVia(path) → {*}
- Source:
- Since:
- 1.4.0
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
Throws:
-
-
unsupported type
- Type
- TypeError
-
-
-
the journey is not at its end
- Type
- Error
-
-
-
value is not a string
- Type
- TypeError
-
-
-
value is not an integer
- Type
- TypeError
-
Returns:
- Type
- *
setVia(path, value) → {Pathfinder}
- Source:
- Since:
- 1.4.0
Parameters:
Name | Type | Description |
---|---|---|
path |
string | |
value |
* |
Throws:
-
-
unsupported type
- Type
- TypeError
-
-
-
value is not a string
- Type
- TypeError
-
-
-
value is not an integer
- Type
- TypeError
-
Returns:
- Type
- Pathfinder