javascript remove undefined from array 28 Javascript Remove Undefined From Array To remove empty, null, or undefinedelements from an array, we can use the filter()array method and pass a function to the m… Written By Kathleen D. Walker Sunday, February 23, 2014 Add Comment Edit