var arr = ['Apple', ' ', 'Mango', '', 'Banana', ' ', 'Strawberry'];

// ES6
arr = arr.filter(e => String(e).trim());

// ES5
arr = arr.filter(function(e) {
return String(e).trim();
});