Skip to content

Commit 1b998cd

Browse files
authored
Update task.md
Please check it carefully. The provided solution or the task probably isn't correct. You have two ways: 1. Correct solution (bad way IMO): function unique(arr: Array<string>) { return Array.from(new Set(arr)).join(', '); } 2. Correct task (see PR).
1 parent 9708e91 commit 1b998cd

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/07-map-set/01-array-unique-map

1 file changed

+1
-1
lines changed

1-js/05-data-types/07-map-set/01-array-unique-map/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let values = ["Hare", "Krishna", "Hare", "Krishna",
1919
"Krishna", "Krishna", "Hare", "Hare", ":-O"
2020
];
2121

22-
alert( unique(values) ); // Hare, Krishna, :-O
22+
alert( unique(values) ); // Hare,Krishna,:-O
2323
```
2424

2525
P.S. Здесь мы используем строки, но значения могут быть любого типа.

0 commit comments

Comments
 (0)