Last active
October 17, 2025 14:17
-
-
Save itsdevdom/3ce94e987e5a01090cbcd75d5a04c0db to your computer and use it in GitHub Desktop.
unique-array.ts
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 array = []; | |
| const uniqueArray = array.filter((value, index, values) => { | |
| return values.indexOf(value) === index; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment