The filter(Boolean) trick
Remove falsy values from an array.
Tags: javascript, array, filter, webdev