File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/node_modules/@stdlib/assert/has-property/examples Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2222
2323var hasProp = require ( './../lib' ) ;
2424
25- var bool = hasProp ( { 'a' : 'b' } , 'a' ) ;
25+ var bool = hasProp ( { 'a' : 'b' } , 'a' ) ;
2626console . log ( bool ) ;
2727// => true
2828
2929bool = hasProp ( { } , 'hasOwnProperty' ) ;
3030console . log ( bool ) ;
3131// => true
3232
33- bool = hasProp ( { 'a' : 'b' } , 'c' ) ;
33+ bool = hasProp ( { 'a' : 'b' } , 'c' ) ;
3434console . log ( bool ) ;
3535// => false
3636
37- bool = hasProp ( { 'a' : 'b' } , null ) ;
37+ bool = hasProp ( { 'a' : 'b' } , null ) ;
3838console . log ( bool ) ;
3939// => false
4040
@@ -46,10 +46,10 @@ bool = hasProp( void 0, 'a' );
4646console . log ( bool ) ;
4747// => false
4848
49- bool = hasProp ( { 'null' : false } , null ) ;
49+ bool = hasProp ( { 'null' : false } , null ) ;
5050console . log ( bool ) ;
5151// => true
5252
53- bool = hasProp ( { '[object Object]' : false } , { } ) ;
53+ bool = hasProp ( { '[object Object]' : false } , { } ) ;
5454console . log ( bool ) ;
5555// => true
You can’t perform that action at this time.
0 commit comments