Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove null from array javascript

let array = [0, 1, null, 2, 3];

function removeNull(array) {
return array.filter(x => x !== null)
};
Source by edabit.com #
 
PREVIOUS NEXT
Tagged: #remove #null #array #javascript
ADD COMMENT
Topic
Name
8+5 =