File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/node_modules/@stdlib/utils/keys/lib Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 23
23
var isObjectLike = require ( '@stdlib/assert/is-object-like' ) ;
24
24
var hasOwnProp = require ( '@stdlib/assert/has-own-property' ) ;
25
25
var isArguments = require ( '@stdlib/assert/is-arguments' ) ;
26
- var hasEnumerablePrototypeBug = require ( './has_enumerable_prototype_bug.js' ) ;
27
- var hasNonEnumerableBug = require ( './has_non_enumerable_properties_bug.js' ) ;
26
+ var HAS_ENUM_PROTO_BUG = require ( './has_enumerable_prototype_bug.js' ) ;
27
+ var HAS_NON_ENUM_PROPS_BUG = require ( './has_non_enumerable_properties_bug.js' ) ;
28
28
var isConstructorPrototype = require ( './is_constructor_prototype_wrapper.js' ) ;
29
29
var NON_ENUMERABLE = require ( './non_enumerable.json' ) ;
30
30
@@ -76,16 +76,16 @@ function keys( value ) {
76
76
if ( isFcn === false && ! isObjectLike ( value ) ) {
77
77
return out ;
78
78
}
79
- skipPrototype = ( hasEnumerablePrototypeBug && isFcn ) ;
79
+ skipPrototype = ( HAS_ENUM_PROTO_BUG && isFcn ) ;
80
80
}
81
- if ( ! isArgs ) {
81
+ if ( isArgs === void 0 ) {
82
82
for ( k in value ) {
83
83
if ( ! ( skipPrototype && k === 'prototype' ) && hasOwnProp ( value , k ) ) {
84
84
out . push ( String ( k ) ) ;
85
85
}
86
86
}
87
87
}
88
- if ( hasNonEnumerableBug ) {
88
+ if ( HAS_NON_ENUM_PROPS_BUG ) {
89
89
skipConstructor = isConstructorPrototype ( value ) ;
90
90
for ( i = 0 ; i < NON_ENUMERABLE . length ; i ++ ) {
91
91
p = NON_ENUMERABLE [ i ] ;
You can’t perform that action at this time.
0 commit comments