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...
aditi2610.hashnode.dev2 min read
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 ๐