Created
November 15, 2022 09:52
-
-
Save zlrlo/9b89929029874272ca67ca565ecdf3d9 to your computer and use it in GitHub Desktop.
javascript trick - 배열 중복 제거
This file contains hidden or 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 names = ['Lee', 'Kim', 'Park', 'Lee', 'Kim']; | |
| const uniqueNamesWithSpread = [...new Set(names)]; |
zlrlo
commented
Nov 15, 2022
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment