File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
lib/node_modules/@stdlib/assert/is-enumerable-property/examples Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 2222
2323var isEnumerableProperty = require ( './../lib' ) ;
2424
25- var bool = isEnumerableProperty ( { 'a' : 'b' } , 'a' ) ;
25+ var obj = {
26+ 'a' : 'b'
27+ } ;
28+ var bool = isEnumerableProperty ( obj , 'a' ) ;
2629console . log ( bool ) ;
2730// => true
2831
@@ -50,10 +53,16 @@ bool = isEnumerableProperty( void 0, 'a' );
5053console . log ( bool ) ;
5154// => false
5255
53- bool = isEnumerableProperty ( { 'null' : false } , null ) ;
56+ obj = {
57+ 'null' : false
58+ } ;
59+ bool = isEnumerableProperty ( obj , null ) ;
5460console . log ( bool ) ;
5561// => true
5662
57- bool = isEnumerableProperty ( { '[object Object]' : false } , { } ) ;
63+ obj = {
64+ '[object Object]' : false
65+ } ;
66+ bool = isEnumerableProperty ( obj , { } ) ;
5867console . log ( bool ) ;
5968// => true
You can’t perform that action at this time.
0 commit comments