Skip to content

Commit 785044f

Browse files
committed
Fix code style
1 parent 1c8bfb4 commit 785044f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

JavaScript/6-logger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
const logger = kind => {
3+
const logger = (kind) => {
44
const color = logger.colors[kind] || logger.colors.info;
5-
return s => {
5+
return (s) => {
66
const date = new Date().toISOString();
77
console.log(color + date + '\t' + s);
88
};

JavaScript/e-array.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ class Person {
3232
}
3333
}
3434

35-
const query = person => (
35+
const query = (person) => (
3636
person.name !== '' &&
3737
person.age > 18 &&
3838
person.city === 'Rome'
3939
);
4040

4141
console.dir(data);
4242

43-
data.forEach(person => {
43+
data.forEach((person) => {
4444
Object.setPrototypeOf(person, Person.prototype);
4545
// person.__proto__ = Person.prototype
4646
});

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