// finding the perfect name
// for the new family member
const fs = require('fs');
const names = fs
.readFileSync('baby_names.csv', 'utf8')
.split('\n')
.map(line => {
[count, name, gender] = line.split(';');
return {count, name, gender};
});
//
...
-
-
Haha right!
I just quickly squeezed it into two tweets, because the original code was a bit too long:pic.twitter.com/Sq7fOzTbdj
-
... and the winner name is ?

- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
(More efficient too, since you don’t need the actual match result.)