first commit
This commit is contained in:
18
public/js/list.js
Normal file
18
public/js/list.js
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
var test = ["hase","ente","ente","igel","hase","ente","ente","igel"];
|
||||
|
||||
// doppelte Löschen
|
||||
function doublesDelete(listing) {
|
||||
let temp = [];
|
||||
listing.forEach((c) => {
|
||||
if (!temp.includes(c)) {
|
||||
temp.push(c);
|
||||
}
|
||||
});
|
||||
return temp;
|
||||
}
|
||||
|
||||
var testreturn = doublesDelete(test);
|
||||
console.log(testreturn)
|
||||
|
||||
// html Liste erstellen
|
||||
Reference in New Issue
Block a user