This commit is contained in:
Karan 2021-11-25 19:58:47 +05:30 committed by GitHub
parent abd467e14a
commit 6ca4865d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +0,0 @@
const arr = ["Laurence", "Mike", "Larry", "Kim", "Joanne", "Laurence", "Mike", "Laurence", "Mike", "Laurence", "Mike"];
const arr2 = arr.filter ( (value, index, array) => {return array.indexOf (value) == index});
console.log(arr2);