Skip to content

Commit 68f1f5f

Browse files
committed
Remove round brackets in typeof
1 parent 5b35319 commit 68f1f5f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

JavaScript/1-memoize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const generateKey = args => (
4-
args.map(x => x.toString() + ':' + typeof(x)).join('|')
4+
args.map(x => x.toString() + ':' + typeof x).join('|')
55
);
66

77
const memoize = fn => {

JavaScript/2-speed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const generateKey = args => (
4-
args.map(x => x.toString() + ':' + typeof(x)).join('|')
4+
args.map(x => x.toString() + ':' + typeof x).join('|')
55
);
66

77
const memoize = fn => {

JavaScript/3-cacheSize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const generateKey = args => (
4-
args.map(x => x + ':' + typeof(x)).join('|')
4+
args.map(x => x + ':' + typeof x).join('|')
55
);
66

77
const memoize = (fn, length) => {

JavaScript/5-sha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const crypto = require('crypto');
44

55
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('|');
77
return crypto.createHash('sha256').update(key).digest('hex');
88
};
99

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy