console.log(filter_array_values([58, '', 'abcd', true, null, false, 0]));
function filter_array_values(arr) {
arr = arr.filter(check);
return arr;
}
function check(value) {
if(value !== false || value !== null || value !== 0 || value !== "") {
return value;
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: