lib/common/misc.js
function filterOutNullData(fieldValues) {
  return _.filter(fieldValues || [], function(val) {
    return val === false || val === 0 || val;
  });
}
function filterOutNullData(fieldValues) {
  return _.filter(fieldValues || [], function(val) {
    return val === false || val === 0 || val;
  });
}
function filterOutNullData ( fieldValues ) { return _ . filter ( fieldValues || [ ] , function ( val ) { return val === false || val === 0 || val ; } ) ; }
filterOutNullData - Utility function to remove all 'null' or 'undefined' values.

0 and false are considered valid field value entries.

@param  {array} fieldValues Array of field values to filter.
@return {array}             Filtered field values.
filterOutNullData - Utility function to remove all null or undefined values .