function approxDeepEqual (value, expected, digits) {
  function replacer (key, value) {
    if (typeof value === 'number') {
      return round(value, digits)
    }

    return value
  }
  return JSON.stringify(value, replacer) === JSON.stringify(expected, replacer)
}
/**
 * Helper function to check whether two objects or arrays are approximately deep equal
 * asserts when that's not the case
 * @param {number} value 
 * @param {number} expected 
 */
Helper function to check whether two objects or arrays are approximately deep equal
asserts when that's not the case
@param {number} value
@param {number} expected
Helper function to check whether two objects or arrays are approximately deep equal asserts when that ' s not the case @param { number } value @param { number } expected
function approxDeepEqual (value, expected, digits) {
  function replacer (key, value) {
    if (typeof value === 'number') {
      return round(value, digits)
    }
    return value
  }
  return JSON.stringify(value, replacer) === JSON.stringify(expected, replacer)
}
function approxDeepEqual ( value , expected , digits ) { function replacer ( key , value ) { if ( typeof value === 'number' ) { return round ( value , digits ) } return value } return JSON . stringify ( value , replacer ) === JSON . stringify ( expected , replacer ) }
Helper function to check whether two objects or arrays are approximately deep equal
 asserts when that's not the case
 @param {number} value
 @param {number} expected
Helper function to check whether two objects or arrays are approximately deep equal asserts when that ' s not the case @param { number } value @param { number } expected