function roundAllValue(obj, decimal = 0, strict = false) {
  Object.keys(obj).forEach(key => {
    if (typeof (obj[key]) === "object" && obj[key] !== null) {
      roundAllValue(obj[key], decimal, strict);
    } else if (isNumeric(obj[key], strict)) {
      const num = parseFloat(obj[key]);
      obj[key] = roundNumber(num, decimal);
    }
  });
}
/**
 * Round all number value in a javascript object at given decimal
 * 
 * @param {any} obj - Javascript object to be rounded 
 * @param {number} [decimal=0] - Round at this decimal 
 * @param {boolean} [strict=false] - set to `true` won't try to cast `string` to `number`  
 */
Round all number value in a javascript object at given decimal


Round all number value in a javascript object at given decimal
function roundAllValue(obj, decimal = 0, strict = false) {
  Object.keys(obj).forEach(key => {
    if (typeof (obj[key]) === "object" && obj[key] !== null) {
      roundAllValue(obj[key], decimal, strict);
    } else if (isNumeric(obj[key], strict)) {
      const num = parseFloat(obj[key]);
      obj[key] = roundNumber(num, decimal);
    }
  });
}
function roundAllValue ( obj , decimal = 0 , strict = false ) { Object . keys ( obj ) . forEach ( key => { if ( typeof ( obj [ key ] ) === "object" && obj [ key ] !== null ) { roundAllValue ( obj [ key ] , decimal , strict ) ; } else if ( isNumeric ( obj [ key ] , strict ) ) { const num = parseFloat ( obj [ key ] ) ; obj [ key ] = roundNumber ( num , decimal ) ; } } ) ; }
Round all number value in a javascript object at given decimal
Round all number value in a javascript object at given decimal