Reputation: 413
I want check if array contains not only empty strings or nulls.
arr = ['','','','','',''];
What is the most elegant way without loops to do it?
Upvotes: 0
Views: 127
Reputation: 413
This is my best solution for now because array.filter have worse browser support.
if(!arr.join('')){/*your code*/}
Upvotes: 1