Skip to content

Commit fad6028

Browse files
chore: fix JavaScript lint errors (issue #9334)
1 parent ffee9eb commit fad6028

File tree

4 files changed

+12
-10
lines changed
  • lib/node_modules/@stdlib

4 files changed

+12
-10
lines changed

lib/node_modules/@stdlib/_tools/lint/header-filenames/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* var lint = require( '@stdlib/_tools/lint/header-filenames' );
4040
*
4141
* var errs = lint.sync();
42-
* // returns [...]
42+
* // returns []
4343
*/
4444

4545
// MODULES //

lib/node_modules/@stdlib/assert/tools/array-like-function/examples/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ var bool;
2727
var f;
2828
var i;
2929

30-
arr1 = new Array( 25 );
31-
for ( i = 0; i < arr1.length; i++ ) {
32-
arr1[ i ] = i;
30+
arr1 = [];
31+
for ( i = 0; i < 25; i++ ) {
32+
arr1.push( i );
3333
}
3434

35-
arr2 = new Array( 25 );
36-
for ( i = 0; i < arr2.length; i++ ) {
37-
arr2[ i ] = 2 * i;
35+
arr2 = [];
36+
for ( i = 0; i < 25; i++ ) {
37+
arr2.push( i * 2 );
3838
}
3939

4040
f = arraylikefcn( isEven );

lib/node_modules/@stdlib/constants/float32/ninf/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
var FLOAT32_NINF = require( './../lib' );
2222

2323
console.log( FLOAT32_NINF );
24-
// => -infinity
24+
// => -Infinity

lib/node_modules/@stdlib/math/strided/special/atan-by/test/test.main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,17 @@ tape( 'the function computes the arctangent via a callback function', function t
7474
atanBy( x.length, x, 1, y, 1, accessor );
7575
t.deepEqual( y, expected, 'deep equal' );
7676

77-
x = new Array( 5 ); // sparse array
77+
x = [];
78+
x.length = 5; // sparse array
7879
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7980

8081
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8182

8283
atanBy( x.length, x, 1, y, 1, accessor );
8384
t.deepEqual( y, expected, 'deep equal' );
8485

85-
x = new Array( 5 ); // sparse array
86+
x = [];
87+
x.length = 5; // sparse array
8688
x[ 2 ] = rand();
8789
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8890

0 commit comments

Comments
 (0)