has-own-property-x

WebJar for has-own-property-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

has-own-property-x
Last Version

Last Version

3.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

has-own-property-x
WebJar for has-own-property-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/has-own-property-x

Download has-own-property-x

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/has-own-property-x/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>has-own-property-x</artifactId>
    <version>3.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/has-own-property-x/
implementation 'org.webjars.npm:has-own-property-x:3.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/has-own-property-x/
implementation ("org.webjars.npm:has-own-property-x:3.2.0")
'org.webjars.npm:has-own-property-x:jar:3.2.0'
<dependency org="org.webjars.npm" name="has-own-property-x" rev="3.2.0">
  <artifact name="has-own-property-x" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='has-own-property-x', version='3.2.0')
)
libraryDependencies += "org.webjars.npm" % "has-own-property-x" % "3.2.0"
[org.webjars.npm/has-own-property-x "3.2.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : cached-constructors-x jar [1.0.0,2)
org.webjars.npm : to-object-x jar [1.5.0,2)
org.webjars.npm : to-property-key-x jar [2.0.2,3)

Project Modules

There are no modules declared in this project.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

has-own-property-x

Used to determine whether an object has an own property with the specified property key.

module.exports(object, property)boolean

The hasOwnProperty method returns a boolean indicating whether the object has the specified property. Does not attempt to fix known issues in older browsers, but does ES6ify the method.

Kind: Exported function
Returns: boolean - true if the property is set on object, else false.
Throws:

  • TypeError If object is null or undefined.
Param Type Description
object Object The object to test.
property string | Symbol The name or Symbol of the property to test.

Example

import hasOwnProperty from 'has-own-property-x';

const o = {
  foo: 'bar',
};

console.log(hasOwnProperty(o, 'bar')); // false
console.log(hasOwnProperty(o, 'foo')); // true
hasOwnProperty(undefined, 'foo'); // TypeError: Cannot convert undefined or null to object

Versions

Version
3.2.0