Skip to main content

Uniquify array

· 2 min read
Filip Tammergård
Software Engineer at Einride

Consider this array of names:

const names = [
"Filip",
"Anna",
"Jennifer",
"Anna",
"Robert",
"Emma",
"Filip",
"Anna",
]

In this array, Filip occurs two times and Anna three times. What if we want filter out the duplicates and get an array with the unique names?

Alphabet game

· One min read
Filip Tammergård
Software Engineer at Einride

In this game, you're supposed to write the alphabet as fast as you can. Click the input box and start the game by typing the first letter of the alphabet. My highscore is 2.95 seconds. Beat that if you can!