Skip to content

Commit c27c8ab

Browse files
Create 929-Unique-Email-Addresses.js
1 parent 3cfb9a5 commit c27c8ab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var numUniqueEmails = function(emails) {
2+
const valid=emails.map(email=>{
3+
const [local, domain] = email.split('@');
4+
return local.split('+').shift().split('.').join('')+'@'+domain;
5+
});
6+
const set=new Set(valid)
7+
8+
return set.size
9+
10+
11+
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy