a key-path is an array of one or more string keys (number keys work too).
they are not strongly typed with respect to whatever structure you are trying to traverse.
TODO: why not also permit symbols? one issue it might raise is the inability to convert a KeyPath to a DotPath.
a
key-path
is an array of one or more string keys (number keys work too). they are not strongly typed with respect to whatever structure you are trying to traverse.TODO: why not also permit
symbol
s? one issue it might raise is the inability to convert aKeyPath
to aDotPath
.