File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
utils/nonenumerable-properties-in/lib Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 29
29
rnorm = normal ( 5.0 , 4.0 , {
30
30
'seed' : 37827
31
31
} ) ;
32
- arr = new Array ( 500 ) ;
32
+ arr = [ ] ;
33
33
for ( i = 0 ; i < arr . length ; i ++ ) {
34
34
arr [ i ] = rnorm ( ) ;
35
35
}
Original file line number Diff line number Diff line change @@ -40,17 +40,13 @@ var isNonEnumerable = require( '@stdlib/assert/is-nonenumerable-property' );
40
40
* // returns [...]
41
41
*/
42
42
function nonEnumerablePropertiesIn ( value ) {
43
+ var Object = require ( '@stdlib/object/ctor' ) ;
43
44
var cache ;
44
45
var out ;
45
46
var obj ;
46
47
var tmp ;
47
48
var k ;
48
49
var i ;
49
-
50
- if ( value === null || value === void 0 ) {
51
- return [ ] ;
52
- }
53
- // Cast the value to an object:
54
50
obj = Object ( value ) ;
55
51
56
52
// Walk the prototype chain collecting non-enumerable properties...
You can’t perform that action at this time.
0 commit comments