10 JavaScript Tricks You Should Know
Extract unique values :
let name = [ 'Aditi', 'Ayushi', ' Sanaya', 'Aditi', 'Aditi' ];
let newName = [...new Set(name)];
console.log( newName); // Output: ["Aditi", "Ayushi", " Sanaya"]
Sum of all numbers in an array
let num = [5, 3, 7, 2...
·2 min read·aditi2610.hashnode.devRead the article
Pranav Krishna
Those tricks are amazing and they help in a person's daily life! Especially, the number to string conversion... I was impressed by that one!
Loved reading through this. Thank you 🙏