File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const generateKey = args => (
4
- args . map ( x => x . toString ( ) + ':' + typeof ( x ) ) . join ( '|' )
4
+ args . map ( x => x . toString ( ) + ':' + typeof x ) . join ( '|' )
5
5
) ;
6
6
7
7
const memoize = fn => {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const generateKey = args => (
4
- args . map ( x => x . toString ( ) + ':' + typeof ( x ) ) . join ( '|' )
4
+ args . map ( x => x . toString ( ) + ':' + typeof x ) . join ( '|' )
5
5
) ;
6
6
7
7
const memoize = fn => {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const generateKey = args => (
4
- args . map ( x => x + ':' + typeof ( x ) ) . join ( '|' )
4
+ args . map ( x => x + ':' + typeof x ) . join ( '|' )
5
5
) ;
6
6
7
7
const memoize = ( fn , length ) => {
Original file line number Diff line number Diff line change 3
3
const crypto = require ( 'crypto' ) ;
4
4
5
5
const generateKey = args => {
6
- const key = args . map ( x => x . toString ( ) + ':' + typeof ( x ) ) . join ( '|' ) ;
6
+ const key = args . map ( x => x . toString ( ) + ':' + typeof x ) . join ( '|' ) ;
7
7
return crypto . createHash ( 'sha256' ) . update ( key ) . digest ( 'hex' ) ;
8
8
} ;
9
9
You can’t perform that action at this time.
0 commit comments