Underscore.js _.compact() FunctionUnderscore.js _.compact() function is used to return an array after removing all the false values. The false values in JavaScript are NaN, undefined, false, 0, null, or an empty string. Its output is an array containing all the even values like the elements of the array, numbers, alphabets, characte
3 min read