Skip to content

Commit d9cb051

Browse files
committed
fix: require Object + remove new Array (lint #8183)
1 parent 0a65e10 commit d9cb051

File tree

2 files changed

+2
-6
lines changed
  • lib/node_modules/@stdlib

2 files changed

+2
-6
lines changed

lib/node_modules/@stdlib/stats/ztest/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var i;
2929
rnorm = normal( 5.0, 4.0, {
3030
'seed': 37827
3131
});
32-
arr = new Array( 500 );
32+
arr = [];
3333
for ( i = 0; i < arr.length; i++ ) {
3434
arr[ i ] = rnorm();
3535
}

lib/node_modules/@stdlib/utils/nonenumerable-properties-in/lib/main.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,13 @@ var isNonEnumerable = require( '@stdlib/assert/is-nonenumerable-property' );
4040
* // returns [...]
4141
*/
4242
function nonEnumerablePropertiesIn( value ) {
43+
var Object = require( '@stdlib/object/ctor' );
4344
var cache;
4445
var out;
4546
var obj;
4647
var tmp;
4748
var k;
4849
var i;
49-
50-
if ( value === null || value === void 0 ) {
51-
return [];
52-
}
53-
// Cast the value to an object:
5450
obj = Object( value );
5551

5652
// Walk the prototype chain collecting non-enumerable properties...

0 commit comments

Comments
 (0)