You should know about the filter(Boolean) trick π‘
The Array.prototype.filter() method in JavaScript allows you to create a new array with only the elements that pass a certain test. The filter() method takes a callback function as an argument, which should return a Boolean value indicating whether o...
majd-sufyan.hashnode.dev3 min read