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
const obj = { a: {b: 3} }; const value = get(obj, 'a.b', {default: 0)); // value equals -> undefined const value = get(obj, 'a.b', 0); // value equals -> 3
The text was updated successfully, but these errors were encountered:
want to do a pull request?
Sorry, something went wrong.
const value = get(obj, 'a.b', {default: 0)); // value equals -> undefined
@valeeum this code is broken and won't run. Don't quite get your point.
No branches or pull requests
const obj = { a: {b: 3} };
const value = get(obj, 'a.b', {default: 0)); // value equals -> undefined
const value = get(obj, 'a.b', 0); // value equals -> 3
The text was updated successfully, but these errors were encountered: