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

Add hasOwn object utility #54

Open
the-spyke opened this issue Oct 24, 2021 · 0 comments
Open

Add hasOwn object utility #54

the-spyke opened this issue Oct 24, 2021 · 0 comments
Labels
Milestone

Comments

@the-spyke
Copy link
Owner

const obj = { x: 5 };
hasOwn(obj, "x"); // true
hasOwn(obj, "y"); // false

const inh = Object.create(obj);
hasOwn(inh, "x"); // false
@the-spyke the-spyke added this to the 0.7.0 milestone Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant