π Understanding .filter(Boolean) in JavaScript
πΉ What is Boolean?
Boolean is a built-in JavaScript function that converts any value into either:
true β
(if the value is truthy)
false β (if the value is falsy)
It basically answers: βIs this value truthy or falsy?β
Examples:
Boolean(1); ...
internship-learnings.hashnode.dev2 min read