Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove empty or whitespace strings from array javascript

// Example 4
arr = arr.filter(entry => entry.trim() != '');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #empty #whitespace #strings #array #javascript
ADD COMMENT
Topic
Name
4+8 =