May 8, 2020
Let's say you have this array:
const myArray = ["red", "blue", "green", "blue", "blue", "orange", "green"]
But you only want each item to appear once.
Here's how you turn that array into an array where each item only appears once.
const uniqueArray = [...new Set(myArray)]
Tufts Meal Plan Wrapped
Mar 2, 2024
Building an e-ink picture frame that displays an iCloud photo album
Jan 9, 2024
2023 in review
Jan 5, 2024
Subscribe to my newsletter for a monthly round-up of new blog posts and projects Iām working on!