Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove empty element from array js

1
2
var fruits = ['orange', 'citron', 'banane', null, 'noix', '', undefined, 'fraise'];
var fruits_filtre = fruits.filter( function(val){return val !== ''} );
Source by www.finalclap.com #
 
PREVIOUS NEXT
Tagged: #remove #empty #element #array #js
ADD COMMENT
Topic
Name
8+1 =