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

[guide] Fix npm package has usage example #2062

Merged
merged 1 commit into from
Jul 24, 2019
Merged

[guide] Fix npm package has usage example #2062

merged 1 commit into from
Jul 24, 2019

Conversation

heymath
Copy link
Contributor

@heymath heymath commented Jul 24, 2019

From has package on npmjs.com, the usage is the following:

var has = require('has');
 
has({}, 'hasOwnProperty'); // false
has(Object.prototype, 'hasOwnProperty'); // true

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ljharb ljharb merged commit 030e23b into airbnb:master Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants