File tree Expand file tree Collapse file tree
lib/node_modules/@stdlib/utils/keys/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323var isObjectLike = require ( '@stdlib/assert/is-object-like' ) ;
2424var hasOwnProp = require ( '@stdlib/assert/has-own-property' ) ;
2525var 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' ) ;
2828var isConstructorPrototype = require ( './is_constructor_prototype_wrapper.js' ) ;
2929var NON_ENUMERABLE = require ( './non_enumerable.json' ) ;
3030
@@ -76,16 +76,16 @@ function keys( value ) {
7676 if ( isFcn === false && ! isObjectLike ( value ) ) {
7777 return out ;
7878 }
79- skipPrototype = ( hasEnumerablePrototypeBug && isFcn ) ;
79+ skipPrototype = ( HAS_ENUM_PROTO_BUG && isFcn ) ;
8080 }
81- if ( ! isArgs ) {
81+ if ( isArgs === void 0 ) {
8282 for ( k in value ) {
8383 if ( ! ( skipPrototype && k === 'prototype' ) && hasOwnProp ( value , k ) ) {
8484 out . push ( String ( k ) ) ;
8585 }
8686 }
8787 }
88- if ( hasNonEnumerableBug ) {
88+ if ( HAS_NON_ENUM_PROPS_BUG ) {
8989 skipConstructor = isConstructorPrototype ( value ) ;
9090 for ( i = 0 ; i < NON_ENUMERABLE . length ; i ++ ) {
9191 p = NON_ENUMERABLE [ i ] ;
You can’t perform that action at this time.
0 commit comments