Skip to content

Commit b9296ae

Browse files
committed
Remove round brackets in single-argument lambdas
1 parent 365224e commit b9296ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JavaScript/6-logger.js

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

3-
const logger = (level) => {
3+
const logger = level => {
44
const color = logger.colors[level] || logger.colors.info;
55
return s => {
66
const date = new Date().toISOString();

JavaScript/e-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Person {
2828
}
2929
}
3030

31-
const query = (person) => (
31+
const query = person => (
3232
person.name !== '' &&
3333
person.age > 18 &&
3434
person.city === 'Rome'

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