Skip to content

Commit 2b09a9b

Browse files
authored
Merge branch 'main' into Sprint-1
2 parents 4718ab3 + 10b3ac9 commit 2b09a9b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Sprint-1/implement/dedupe.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Dedupe Array
66
77
In this kata, you will need to deduplicate the elements of an array
88
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]
9+
E.g. dedupe(['a','a','a','b','b','c']) returns ['a','b','c']
10+
E.g. dedupe([5, 1, 1, 2, 3, 2, 5, 8]) returns [5, 1, 2, 3, 8]
11+
E.g. dedupe([1, 2, 1]) returns [1, 2]
1212
*/
1313

1414
// Acceptance Criteria:
@@ -27,7 +27,7 @@ test("given an array with no duplicates, it returns a copy of the original array
2727
expect(dedupe(["a", "b", "c"])).toEqual(["a", "b", "c"]);
2828
});
2929

30-
// Given an array with strings or numbers
30+
// Given an array of strings or numbers
3131
// When passed to the dedupe function
3232
// Then it should remove the duplicate values, preserving the first occurence of each element
3333

0 commit comments

Comments
 (0)