Skip to content

Commit 3c5d45d

Browse files
authored
Merge pull request timoxley#143 from satanas/boilerplate_for_implement_map_with_reduce
Adjusting boilerplate code for consistency
2 parents 7e55bda + f16b8ea commit 3c5d45d

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

exercises/implement_map_with_reduce/problem.fr.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ console.log(output) // => [2,4,6,8,10]
3030
## Base de travail
3131

3232
```js
33-
module.exports = function arrayMap(arr, fn) {
33+
34+
function arrayMap(arr, fn) {
3435
// VOTRE SOLUTION ICI
3536
}
37+
38+
module.exports = arrayMap;
39+
3640
```

exercises/implement_map_with_reduce/problem.ko.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ console.log(output) // => [2,4,6,8,10]
3333

3434
```js
3535

36-
module.exports = function arrayMap(arr, fn) {
36+
function arrayMap(arr, fn) {
3737
// 여기에 해답을 적으세요
3838
}
3939

40+
module.exports = arrayMap;
41+
4042
```
4143

exercises/implement_map_with_reduce/problem.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ console.log(output) // => [2,4,6,8,10]
3737

3838
```js
3939

40-
module.exports = function arrayMap(arr, fn) {
41-
// SOLUTION GOES HERE
40+
function arrayMap(arr, fn) {
41+
//SOLUTION GOES HERE
4242
}
4343

44+
module.exports = arrayMap;
45+
4446
```
4547

0 commit comments

Comments
 (0)