advancements in tests and storing messages
This commit is contained in:
1 parent
4d4ef54bcb
commit
0ea7f5865b
15 files changed
+285
-84
No files matched your search
@@ -0,0 +1,13 @@
|
||||
function removeDuplicates(array) {
|
||||
let unique = [];
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
if (!unique.includes(array[i])) {
|
||||
unique.push(array[i]);
|
||||
}
|
||||
}
|
||||
return unique;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
removeDuplicates,
|
||||
};
|
||||
Reference in new issue
Block a user