List can be separated by comma or new line. Each item in list ends with a comma, or a new line. In that case this tool can remove duplicate from the given list. For example in JavaScript list there are lot of duplicate items and you do not want to waste your time manually removing those duplicate items then take the help from this tool.
Sample Examples
Test Case | Input | Without Duplicate |
---|---|---|
List of Strings | "item1", "item2", "item1", | "item1", "item2", |
Basic Case | [1, 2, 3, 4, 5] | [1, 2, 3, 4, 5] |
Case with Duplicates | [1, 2, 2, 3, 3, 4, 5, 5] | [1, 2, 3, 4, 5] |
Empty List | [] | [] |
List with Only One Element | [1] | [1] |
List with All Duplicates | [1, 1, 1, 1, 1] | [1] |
List with Mixed Types | [1, 'a', 'b', 2, 3, 'a', 'b'] | [1, 'a', 'b', 2, 3] |
List with Objects | [{"a":1},{"b":2},{"a":1},{"c":3}] | [{"a":1},{"b":2},{"c":3}] |
List with Null and Undefined | [null, undefined, null, 1, 2, undefined, 3] | [null, undefined, 1, 2, 3] |
List with NaN | [NaN, 1, 2, NaN, 3, NaN] | [NaN, 1, 2, 3] |