@@ -18,7 +18,7 @@ limitations under the License.
1818
1919-->
2020
21- # hasOwnProperty
21+ # hasOwnProp
2222
2323> Test if an object has a specified property.
2424
@@ -29,10 +29,10 @@ limitations under the License.
2929<!-- stdlib/no-redeclare -->
3030
3131``` javascript
32- var hasOwnProperty = require ( ' @stdlib/assert/has-own-property' );
32+ var hasOwnProp = require ( ' @stdlib/assert/has-own-property' );
3333```
3434
35- #### hasOwnProperty ( value, property )
35+ #### hasOwnProp ( value, property )
3636
3737Returns a boolean indicating if a ` value ` has a specified ` property ` .
3838
@@ -43,10 +43,10 @@ var value = {
4343 ' beep' : ' boop'
4444};
4545
46- var bool = hasOwnProperty ( value, ' beep' );
46+ var bool = hasOwnProp ( value, ' beep' );
4747// returns true
4848
49- bool = hasOwnProperty ( value, ' bap' );
49+ bool = hasOwnProp ( value, ' bap' );
5050// returns false
5151```
5252
@@ -58,15 +58,15 @@ bool = hasOwnProperty( value, 'bap' );
5858
5959## Notes
6060
61- - In contrast to the native [ Object.prototype.hasOwnPropertyerty ] [ mdn-object-has-own-property ] , this function does ** not** throw when provided ` null ` or ` undefined ` . Instead, the function returns ` false ` .
61+ - In contrast to the native [ Object.prototype.hasOwnProperty ] [ mdn-object-has-own-property ] , this function does ** not** throw when provided ` null ` or ` undefined ` . Instead, the function returns ` false ` .
6262
6363 <!-- stdlib/no-redeclare -->
6464
6565 ``` javascript
66- var bool = hasOwnProperty ( null , ' a' );
66+ var bool = hasOwnProp ( null , ' a' );
6767 // returns false
6868
69- bool = hasOwnProperty ( void 0 , ' a' );
69+ bool = hasOwnProp ( void 0 , ' a' );
7070 // returns false
7171 ```
7272
@@ -75,7 +75,7 @@ bool = hasOwnProperty( value, 'bap' );
7575 <!-- stdlib/ no- redeclare -->
7676
7777 ` ` ` javascript
78- var bool = hasOwnProperty ( 'beep', 'length' );
78+ var bool = hasOwnProp ( 'beep', 'length' );
7979 // returns true
8080 ` ` `
8181
@@ -87,13 +87,13 @@ bool = hasOwnProperty( value, 'bap' );
8787 var value = {
8888 'null': false
8989 };
90- var bool = hasOwnProperty ( value, null );
90+ var bool = hasOwnProp ( value, null );
9191 // returns true
9292
9393 value = {
9494 '[object Object]': false
9595 };
96- bool = hasOwnProperty ( value, {} );
96+ bool = hasOwnProp ( value, {} );
9797 // returns true
9898 ` ` `
9999
@@ -110,30 +110,30 @@ bool = hasOwnProperty( value, 'bap' );
110110<!-- eslint no- undef: " error" -->
111111
112112` ` ` javascript
113- var hasOwnProperty = require( '@stdlib/assert/has-own-property' );
113+ var hasOwnProp = require( '@stdlib/assert/has-own-property' );
114114
115- var bool = hasOwnProperty ( { 'a': 'b' }, 'a' );
115+ var bool = hasOwnProp ( { 'a': 'b' }, 'a' );
116116// returns true
117117
118- bool = hasOwnProperty ( { 'a': 'b' }, 'c' );
118+ bool = hasOwnProp ( { 'a': 'b' }, 'c' );
119119// returns false
120120
121- bool = hasOwnProperty ( { 'a': 'b' }, null );
121+ bool = hasOwnProp ( { 'a': 'b' }, null );
122122// returns false
123123
124- bool = hasOwnProperty ( {}, 'hasOwnPropertyerty ' );
124+ bool = hasOwnProp ( {}, 'hasOwnProp ' );
125125// returns false
126126
127- bool = hasOwnProperty ( null, 'a' );
127+ bool = hasOwnProp ( null, 'a' );
128128// returns false
129129
130- bool = hasOwnProperty ( void 0, 'a' );
130+ bool = hasOwnProp ( void 0, 'a' );
131131// returns false
132132
133- bool = hasOwnProperty ( { 'null': false }, null );
133+ bool = hasOwnProp ( { 'null': false }, null );
134134// returns true
135135
136- bool = hasOwnProperty ( { '[object Object]': false }, {} );
136+ bool = hasOwnProp ( { '[object Object]': false }, {} );
137137// returns true
138138` ` `
139139
0 commit comments