Create a unique Array in javascript

JS Tip #1

I know there is a lot of different ways to make a unique object list

but trust me this is a very fast way and simple way to do it

yeah, what the hack what is the Set :)

don't worry I’ll cover that too for you

regarding Mozilla official docs Set is an object that lets you store unique values of any type, whether primitive values or object references.

set is introduced with ES6 (ES2015)

you can find more about set with below links

https://alligator.io/js/sets-introduction/

--

--

--

If you want to know more about me follow me on instagram and Linkedin and shoot me a DM

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
React Dojo

React Dojo

If you want to know more about me follow me on instagram and Linkedin and shoot me a DM

More from Medium

JavaScript Frameworks & Libraries

Understanding Array.sort() Method In JavaScript

JavaScript ES6 Spread Operator