DEV Community

Discussion on: Remove duplicate value from array

Collapse
 
valeriavg profile image
Valeria • Edited

Good stuff!

If you're not planning on doing re-assignment, you can keep arrays (and objects overall const):

const arr=[]
arr.push('value')
Enter fullscreen mode Exit fullscreen mode