We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4718ab3 + 10b3ac9 commit 2b09a9bCopy full SHA for 2b09a9b
1 file changed
Sprint-1/implement/dedupe.test.js
@@ -6,9 +6,9 @@ Dedupe Array
6
7
In this kata, you will need to deduplicate the elements of an array
8
9
-E.g. dedupe(['a','a','a','b','b','c']) target output: ['a','b','c']
10
-E.g. dedupe([5, 1, 1, 2, 3, 2, 5, 8]) target output: [5, 1, 2, 3, 8]
11
-E.g. dedupe([1, 2, 1]) target output: [1, 2]
+E.g. dedupe(['a','a','a','b','b','c']) returns ['a','b','c']
+E.g. dedupe([5, 1, 1, 2, 3, 2, 5, 8]) returns [5, 1, 2, 3, 8]
+E.g. dedupe([1, 2, 1]) returns [1, 2]
12
*/
13
14
// Acceptance Criteria:
@@ -27,7 +27,7 @@ test("given an array with no duplicates, it returns a copy of the original array
27
expect(dedupe(["a", "b", "c"])).toEqual(["a", "b", "c"]);
28
});
29
30
-// Given an array with strings or numbers
+// Given an array of strings or numbers
31
// When passed to the dedupe function
32
// Then it should remove the duplicate values, preserving the first occurence of each element
33
0 commit comments