has-own-property
v1.0.0arrow_drop_downv1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
56
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
478 B
Determines whether the object has the specified property.
1 contributor
Like
Install has-own-property as a package?
Copied
npm i @bit/giladshoham.for-krazybee.object.has-own-property
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
hasOwnProperty (
obj:
object
,prop:
) : (string | number)
boolean
Determines whether the object has the specified property.
Example
Arguments
obj:
object
prop:
(string | number)
property to test
Returns
boolean
Test Summary
#hasOwnProperty() should return false as given object do not contain key | Pass |
#hasOwnProperty() should return true as given object contains key | Pass |
#hasOwnProperty() should return false if key is null | Pass |