We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get
Currently get is able to support array paths to access properties on an object
get({ a: { b: { c: 1 } } }, ['a', 'b', 'c']) // 1
However this blocks the eager API when trying to access indexed values on an array. It returns a function instead for the lazy API.
get([1, 2, 3], 0) // [Function: arg0Resolver]
We should amend the API to stop supporting array paths so we can eagerly access arrays.
The text was updated successfully, but these errors were encountered:
An alternative to array paths is string paths
get({ a: { b: { c: 1 } } }, ['a', 'b', 'c']) // 1 get({ a: { b: { c: 1 } } }, 'a.b.c') // 1
Sorry, something went wrong.
No branches or pull requests
Currently
get
is able to support array paths to access properties on an objectHowever this blocks the eager API when trying to access indexed values on an array. It returns a function instead for the lazy API.
We should amend the API to stop supporting array paths so we can eagerly access arrays.
The text was updated successfully, but these errors were encountered: