function remove_nonetype(array) {
  var new_arr = [];
  for (ele of array) {
    if (ele != null && !isNaN(ele) && ele != '') {
      new_arr.push(ele);
    }
  }
  return new_arr;
}
// Return a new array without non-number or null

Return a new array without non-number or null
Return a new array without non - number or null
function remove_nonetype(array) {
  var new_arr = [];
  for (ele of array) {
    if (ele != null && !isNaN(ele) && ele != '') {
      new_arr.push(ele);
    }
  }
  return new_arr;
}
function remove_nonetype ( array ) { var new_arr = [ ] ; for ( ele of array ) { if ( ele != null && ! isNaN ( ele ) && ele != '' ) { new_arr . push ( ele ) ; } } return new_arr ; }
Return a new array without non-number or null
Return a new array without non - number or null