We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcafc72 commit c2cf04dCopy full SHA for c2cf04d
lib/node_modules/@stdlib/plot/ctor/lib/props/x-max/get.js
@@ -21,7 +21,7 @@
21
// MODULES //
22
23
var isNull = require( '@stdlib/assert/is-null' );
24
-var max = require( './../../utils/max.js' ); // TODO: replace with mod when written
+var max = require( './../../utils/max.js' ); // TODO: replace with stdlib package import when added
25
26
27
// FUNCTIONS //
@@ -39,9 +39,9 @@ function getMax( arr ) {
39
if ( arr.length === 0 ) {
40
return null;
41
}
42
- tmp = new Array( arr.length );
+ tmp = [];
43
for ( i = 0; i < arr.length; i++ ) {
44
- tmp[ i ] = max( arr[ i ] );
+ tmp.push( max( arr[ i ] ) );
45
46
return max( tmp );
47
0 commit comments