function fieldFixed(datalist, dataSchema, nameMap) {
  datalist.forEach(function (x) {
    nameMap.forEach(function (n) {
      if (x[n[1]] !== undefined) {
        // delete '' or ' '
        if (x[n[1]].length === 0 || !x[n[1]].replace(/\s/g, '').length) {
          delete x[n[1]];
          return
        }
        // rename key
        x[n[0]] = x[n[1]];
        delete x[n[1]];
        // delete non-number characters(unit) in number field
        if (dataSchema.paths[n[0]].instance === 'Number') {
          x[n[0]] = x[n[0]].replace(/[^\+\-0-9\.]+/g, '');
        }
      }
    })
  });
}
/**
 * delete null or white space field, rename key ,delete non-number characters(unit) in number field
 * @param datalist    the originnale json list from xlsx file
 * @param dataSchema  the data model schema defined by mongoose
 * @param nameMap     model field and original column name mapping
 */
delete null or white space field, rename key ,delete non-number characters(unit) in number field
@param datalist    the originnale json list from xlsx file
@param dataSchema  the data model schema defined by mongoose
@param nameMap     model field and original column name mapping
delete null or white space field rename key delete non - number characters ( unit ) in number field @param datalist the originnale json list from xlsx file @param dataSchema the data model schema defined by mongoose @param nameMap model field and original column name mapping
function fieldFixed(datalist, dataSchema, nameMap) {
  datalist.forEach(function (x) {
    nameMap.forEach(function (n) {
      if (x[n[1]] !== undefined) {
        if (x[n[1]].length === 0 || !x[n[1]].replace(/\s/g, '').length) {
          delete x[n[1]];
          return
        }
        x[n[0]] = x[n[1]];
        delete x[n[1]];
        if (dataSchema.paths[n[0]].instance === 'Number') {
          x[n[0]] = x[n[0]].replace(/[^\+\-0-9\.]+/g, '');
        }
      }
    })
  });
}
function fieldFixed ( datalist , dataSchema , nameMap ) { datalist . forEach ( function ( x ) { nameMap . forEach ( function ( n ) { if ( x [ n [ 1 ] ] !== undefined ) { if ( x [ n [ 1 ] ] . length === 0 || ! x [ n [ 1 ] ] . replace ( / \s / g , '' ) . length ) { delete x [ n [ 1 ] ] ; return } x [ n [ 0 ] ] = x [ n [ 1 ] ] ; delete x [ n [ 1 ] ] ; if ( dataSchema . paths [ n [ 0 ] ] . instance === 'Number' ) { x [ n [ 0 ] ] = x [ n [ 0 ] ] . replace ( / [^\+\-0-9\.]+ / g , '' ) ; } } } ) } ) ; }
delete null or white space field, rename key ,delete non-number characters(unit) in number field
 @param datalist    the originnale json list from xlsx file
 @param dataSchema  the data model schema defined by mongoose
 @param nameMap     model field and original column name mapping
delete null or white space field rename key delete non - number characters ( unit ) in number field @param datalist the originnale json list from xlsx file @param dataSchema the data model schema defined by mongoose @param nameMap model field and original column name mapping
// delete '' or ' ' // rename key // delete non-number characters(unit) in number field