Skip to content

Commit 3ff2128

Browse files
committed
ident
1 parent fe12468 commit 3ff2128

File tree

2 files changed

+13
-13
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanmax

2 files changed

+13
-13
lines changed

lib/node_modules/@stdlib/stats/incr/nanmax/docs/types/test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ import incrnanmax = require( './index' );
4141

4242
// The function returns an accumulator function which returns an accumulated result...
4343
{
44-
const acc = incrnanmax();
44+
const acc = incrnanmax();
4545

46-
acc(); // $ExpectType number | null
47-
acc( 3.14 ); // $ExpectType number | null
46+
acc(); // $ExpectType number | null
47+
acc( 3.14 ); // $ExpectType number | null
4848
}
4949

5050
// The compiler throws an error if the returned accumulator function is provided invalid arguments...
5151
{
52-
const acc = incrnanmax();
53-
54-
acc( '5' ); // $ExpectError
55-
acc( true ); // $ExpectError
56-
acc( false ); // $ExpectError
57-
acc( null ); // $ExpectError
58-
acc( [] ); // $ExpectError
59-
acc( {} ); // $ExpectError
60-
acc( ( x: number ): number => x ); // $ExpectError
52+
const acc = incrnanmax();
53+
54+
acc( '5' ); // $ExpectError
55+
acc( true ); // $ExpectError
56+
acc( false ); // $ExpectError
57+
acc( null ); // $ExpectError
58+
acc( [] ); // $ExpectError
59+
acc( {} ); // $ExpectError
60+
acc( ( x: number ): number => x ); // $ExpectError
6161
}

lib/node_modules/@stdlib/stats/incr/nanmax/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ for ( i = 0; i < 100; i++ ) {
3838
v = randu() * 100.0;
3939
}
4040
max = accumulator( v );
41-
console.log( '%d\t%d', v.toFixed( 4 ),( max === null ) ? NaN : max.toFixed( 4 ) );
41+
console.log( '%d\t%d', v.toFixed( 4 ), ( max === null ) ? NaN : max.toFixed( 4 ) );
4242
}
4343
console.log( '\nFinal max: %d\n', accumulator() );

0 commit comments

Comments
 (0)