Skip to content
New issue

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

Nested (chained) properties #7

Closed
kerimcet opened this issue Nov 3, 2021 · 1 comment
Closed

Nested (chained) properties #7

kerimcet opened this issue Nov 3, 2021 · 1 comment

Comments

@kerimcet
Copy link

kerimcet commented Nov 3, 2021

Hi!

Do you consider adding the check for nested (chained) property?

const object = {
  person: {
    name: 'john'
  }
};

hasOwnProperty(object, 'person.name');
//=> true
@sindresorhus
Copy link
Owner

That is outside the scope of this package. Check out: https://github.com/sindresorhus/dot-prop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants