function normalizeValues(matrix, vals) {
  reverseUnits.reduce((previous, current) => {
    if (!isUndefined(vals[current])) {
      if (previous) {
        convert(matrix, vals, previous, vals, current);
      }
      return current;
    } else {
      return previous;
    }
  }, null);
}
function normalizeValues(matrix, vals) {
  reverseUnits.reduce((previous, current) => {
    if (!isUndefined(vals[current])) {
      if (previous) {
        convert(matrix, vals, previous, vals, current);
      }
      return current;
    } else {
      return previous;
    }
  }, null);
}
function normalizeValues ( matrix , vals ) { reverseUnits . reduce ( ( previous , current ) => { if ( ! isUndefined ( vals [ current ] ) ) { if ( previous ) { convert ( matrix , vals , previous , vals , current ) ; } return current ; } else { return previous ; } } , null ) ; }
NB: mutates parameters
NB : mutates parameters
Normalize the values of a given matrix