Skip to content

Commit 1fe14cf

Browse files
nodejs format
1 parent 5176daa commit 1fe14cf

File tree

6 files changed

+21
-18
lines changed

6 files changed

+21
-18
lines changed

concepts/type-checking/about.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For better type safety and stronger types, you should probably use TypeScript, a
1313
## The `typeof` operator
1414

1515
The `typeof` operator returns the type of its operand.
16-
The output is a string matching the name of one of the [primitive data types][primitives], except for `"null"`.
16+
The output is a string matching the name of one of the [primitive data types][primitives], except for `"null"`.
1717
It can also be `"function"` or `"object"`.
1818

1919
```javascript
@@ -69,7 +69,7 @@ java instanceof Beverage;
6969
// => true
7070
```
7171

72-
```exercism/advanced
72+
````exercism/advanced
7373
The `Array` class has a method called `Array.isArray()` that checks if its argument is an array.
7474
7575
While `instanceof Array` will not work with an array created in a different realm such as an `iframe` in a webpage, `Array.isArray()` will.
@@ -85,8 +85,9 @@ It can also survive false positives where an object isn't actually an `Array`, a
8585
8686
Array.isArray({ __proto__: Array.prototype })
8787
// => false
88-
```
89-
```
88+
````
89+
90+
````
9091
9192
## The `in` operator
9293
@@ -116,7 +117,7 @@ const espresso = new Coffee();
116117
117118
'isDarkMatter' in espresso;
118119
// => true
119-
```
120+
````
120121

121122
````exercism/note
122123
`in` will return `true` for inherited properties and methods.

concepts/type-checking/introduction.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For better type safety and stronger types, you should probably use TypeScript, a
1313
## The `typeof` operator
1414

1515
The `typeof` operator returns the type of its operand.
16-
The output is a string matching the name of one of the [primitive data types][primitives], except for `"null"`.
16+
The output is a string matching the name of one of the [primitive data types][primitives], except for `"null"`.
1717
It can also be `"function"` or `"object"`.
1818

1919
```javascript
@@ -69,7 +69,7 @@ java instanceof Beverage;
6969
// => true
7070
```
7171

72-
```exercism/advanced
72+
````exercism/advanced
7373
The `Array` class has a method called `Array.isArray()` that checks if its argument is an array.
7474
7575
While `instanceof Array` will not work with an array created in a different realm such as an `iframe` in a webpage, `Array.isArray()` will.
@@ -85,8 +85,9 @@ It can also survive false positives where an object isn't actually an `Array`, a
8585
8686
Array.isArray({ __proto__: Array.prototype })
8787
// => false
88-
```
89-
```
88+
````
89+
90+
````
9091
9192
## The `in` operator
9293
@@ -116,7 +117,7 @@ const espresso = new Coffee();
116117
117118
'isDarkMatter' in espresso;
118119
// => true
119-
```
120+
````
120121

121122
````exercism/note
122123
`in` will return `true` for inherited properties and methods.

exercises/concept/recycling-robot/.docs/introduction.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For better type safety and stronger types, you should probably use TypeScript, a
1313
## The `typeof` operator
1414

1515
The `typeof` operator returns the type of its operand.
16-
The output is a string matching the name of one of the [primitive data types][primitives], except for `"null"`.
16+
The output is a string matching the name of one of the [primitive data types][primitives], except for `"null"`.
1717
It can also be `"function"` or `"object"`.
1818

1919
```javascript
@@ -69,7 +69,7 @@ java instanceof Beverage;
6969
// => true
7070
```
7171

72-
```exercism/advanced
72+
````exercism/advanced
7373
The `Array` class has a method called `Array.isArray()` that checks if its argument is an array.
7474
7575
While `instanceof Array` will not work with an array created in a different realm such as an `iframe` in a webpage, `Array.isArray()` will.
@@ -85,8 +85,9 @@ It can also survive false positives where an object isn't actually an `Array`, a
8585
8686
Array.isArray({ __proto__: Array.prototype })
8787
// => false
88-
```
89-
```
88+
````
89+
90+
````
9091
9192
## The `in` operator
9293
@@ -116,7 +117,7 @@ const espresso = new Coffee();
116117
117118
'isDarkMatter' in espresso;
118119
// => true
119-
```
120+
````
120121

121122
````exercism/note
122123
`in` will return `true` for inherited properties and methods.

exercises/concept/recycling-robot/.meta/exemplar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// the @ts-check directive. It will give you helpful autocompletion when
55
// implementing this exercise.
66

7-
import {ElectronicDevice} from "./lib.js"
7+
import { ElectronicDevice } from './lib.js';
88

99
/**
1010
* Checks if input is a boolean.

exercises/concept/recycling-robot/assembly-line.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// the @ts-check directive. It will give you helpful autocompletion when
55
// implementing this exercise.
66

7-
import {ElectronicDevice} from "./lib.js"
7+
import { ElectronicDevice } from './lib.js';
88

99
/**
1010
* Checks if input is a boolean.

exercises/concept/recycling-robot/assembly-line.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
hasIdProperty,
1313
hasDefinedType,
1414
} from './assembly-line';
15-
import {ElectronicDevice} from './lib.js'
15+
import { ElectronicDevice } from './lib.js';
1616
describe('isBoolean', () => {
1717
test('isBoolean works on booleans', () => {
1818
expect(isBoolean(true)).toBe(true);

0 commit comments

Comments
 (0)