Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 1, 2024 via pnpm

has 1.0.3

Object.prototype.hasOwnProperty.call shortcut
Package summary
Share
0
issues
1
license
2
MIT
Package created
8 Oct 2013
Version published
4 Jun 2018
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
function-bind@1.1.2
has@1.0.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of has 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
function-bind1.1.29.57 kBMIT
prod

Visualizations

Frequently Asked Questions

What does has do?

The "has" npm package is a handy JavaScript tool providing a shortcut to the Object.prototype.hasOwnProperty.call method. This package is widely used as a utility to check if an object possesses a specific property. The package saves developers from writing longer codes to check object properties by making the process simpler, efficient, and cleaner.

How do you use has?

To use the "has" npm package, you first need to install it into your project by running npm install --save has in your project terminal. Once installed, you can require it at the top of your JavaScript file where you want to use it. Here is a basic example of how to use it:

var has = require('has');

// Checking if an empty object has the 'hasOwnProperty' property
console.log(has({}, 'hasOwnProperty')); // This will output : false

// Checking if the Object.prototype has the 'hasOwnProperty' property
console.log(has(Object.prototype, 'hasOwnProperty')); // This will output : true

In this code, 'has' checks if the provided object (first parameter) has the named property (second parameter).

Where are the has docs?

The official documentation of the "has" npm package can be found on its GitHub page, located at https://github.com/tarruda/has. The README provides a clear guide to installing and using the package, along with examples. Keep in mind to stay updated with any changes that can be published.