File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
lib/node_modules/@stdlib/stats/incr/nanmax Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
4343console . log ( '\nFinal max: %d\n' , accumulator ( ) ) ;
You can’t perform that action at this time.
0 commit comments