Created
November 7, 2020 11:38
-
-
Save dan-laskowski/a9a54e10a73f4aa47815c8054a04d73a to your computer and use it in GitHub Desktop.
[Array with unique categories] #js #javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const allCategories = ['all', ...new Set(items.map((item) => item.category))]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment