13 useful JavaScript array tips and tricks you should know

1. Remove duplicates from an array

Easy, right?

2. Replace the specific value in an array

3. Map array without.map()

4. Empty an array

5. Convert array to an object

6. Fulfill array with data

7. Merge arrays

8. Find the intersection of two arrays

9. Remove falsy values from an array

10. Get random value form the array

11. Reversing an array

12. .lastIndexOf() method

13. Sum all the values in the array

Conclusion

--

--

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