Skip to content

Commit 73ba549

Browse files
Daniel-1600kgrytestdlib-bot
authored
chore: replace new Array() with array literal
PR-URL: #10886 Closes: #10884 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Co-authored-by: stdlib-bot <noreply@stdlib.io>
1 parent 0621f73 commit 73ba549

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/process/umask/scripts/binary_to_symbolic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var j;
3737
TOTAL = 8 * 8 * 8 * 8;
3838

3939
// For each integer value (octal number), determine the symbolic notation equivalent to the value's binary representation...
40-
masks = new Array( TOTAL );
40+
masks = [];
4141
for ( i = 0; i < TOTAL; i++ ) {
4242
tmp = '';
4343

@@ -79,7 +79,7 @@ for ( i = 0; i < TOTAL; i++ ) {
7979
}
8080
}
8181
// [ integer, octal, binary_string, symbolic_notation ]
82-
masks[ i ] = [ i, lpad( i.toString( 8 ), 4, '0' ), bstr, tmp ];
82+
masks.push( [ i, lpad( i.toString( 8 ), 4, '0' ), bstr, tmp ] );
8383
}
8484

8585
if ( PRETTY_PRINT ) {

0 commit comments

Comments
 (0)