SOURCE

let strin = {"1685674949187":{"statisticsNum":4,"browserTime":1685674949187,"timestamp":""},"1685674950170":{"statisticsNum":17,"browserTime":1685674950170,"timestamp":""},"1685674951156":{"statisticsNum":22,"browserTime":1685674951157,"timestamp":""},"1685674952192":{"statisticsNum":26,"browserTime":1685674952192,"timestamp":""},"1685674953164":{"statisticsNum":35,"browserTime":1685674953164,"timestamp":""},"1685674954156":{"statisticsNum":39,"browserTime":1685674954157,"timestamp":""},"1685674955185":{"statisticsNum":45,"browserTime":1685674955185,"timestamp":""},"1685674956190":{"statisticsNum":52,"browserTime":1685674956190,"timestamp":""},"1685674957157":{"statisticsNum":58,"browserTime":1685674957157,"timestamp":""},"1685674958165":{"statisticsNum":68,"browserTime":1685674958165,"timestamp":""},"1685674959156":{"statisticsNum":77,"browserTime":1685674959156,"timestamp":""},"1685674960240":{"statisticsNum":82,"browserTime":1685674960240,"timestamp":""},"1685674961157":{"statisticsNum":85,"browserTime":1685674961157,"timestamp":""},"1685674962192":{"statisticsNum":91,"browserTime":1685674962192,"timestamp":""},"1685674963156":{"statisticsNum":95,"browserTime":1685674963156,"timestamp":""},"1685674964157":{"statisticsNum":100,"browserTime":1685674964157,"timestamp":""},"1685674965157":{"statisticsNum":110,"browserTime":1685674965157,"timestamp":""},"1685674966181":{"statisticsNum":119,"browserTime":1685674966181,"timestamp":""},"1685674967157":{"statisticsNum":126,"browserTime":1685674967157,"timestamp":""},"1685674968157":{"statisticsNum":130,"browserTime":1685674968157,"timestamp":""},"1685674969159":{"statisticsNum":135,"browserTime":1685674969159,"timestamp":""},"1685674970156":{"statisticsNum":141,"browserTime":1685674970156,"timestamp":""},"1685674971157":{"statisticsNum":145,"browserTime":1685674971157,"timestamp":""},"1685674972157":{"statisticsNum":150,"browserTime":1685674972157,"timestamp":""},"1685674973251":{"statisticsNum":159,"browserTime":1685674973251,"timestamp":""},"1685674974210":{"statisticsNum":165,"browserTime":1685674974210,"timestamp":""},"1685674975157":{"statisticsNum":175,"browserTime":1685674975157,"timestamp":""},"1685674976176":{"statisticsNum":180,"browserTime":1685674976176,"timestamp":""},"1685674977156":{"statisticsNum":184,"browserTime":1685674977156,"timestamp":""},"1685674978157":{"statisticsNum":188,"browserTime":1685674978157,"timestamp":""},"1685674979156":{"statisticsNum":191,"browserTime":1685674979156,"timestamp":""},"1685674980155":{"statisticsNum":202,"browserTime":1685674980155,"timestamp":""},"1685674981156":{"statisticsNum":205,"browserTime":1685674981156,"timestamp":""},"1685674982157":{"statisticsNum":212,"browserTime":1685674982157,"timestamp":""},"1685674983155":{"statisticsNum":215,"browserTime":1685674983155,"timestamp":""},"1685674984157":{"statisticsNum":222,"browserTime":1685674984157,"timestamp":""},"1685674985156":{"statisticsNum":231,"browserTime":1685674985156,"timestamp":""},"1685674986262":{"statisticsNum":241,"browserTime":1685674986262,"timestamp":""},"1685674987172":{"statisticsNum":245,"browserTime":1685674987172,"timestamp":""},"1685674988157":{"statisticsNum":249,"browserTime":1685674988157,"timestamp":""},"1685674989156":{"statisticsNum":253,"browserTime":1685674989156,"timestamp":""},"1685674990156":{"statisticsNum":256,"browserTime":1685674990156,"timestamp":""},"1685674991251":{"statisticsNum":267,"browserTime":1685674991251,"timestamp":""},"1685674992157":{"statisticsNum":274,"browserTime":1685674992157,"timestamp":""},"1685674993156":{"statisticsNum":276,"browserTime":1685674993156,"timestamp":""},"1685674994210":{"statisticsNum":285,"browserTime":1685674994210,"timestamp":""},"1685674995188":{"statisticsNum":294,"browserTime":1685674995188,"timestamp":""},"1685674996155":{"statisticsNum":298,"browserTime":1685674996155,"timestamp":""},"1685674997156":{"statisticsNum":301,"browserTime":1685674997156,"timestamp":""},"1685674998157":{"statisticsNum":303,"browserTime":1685674998157,"timestamp":""},"1685674999156":{"statisticsNum":308,"browserTime":1685674999156,"timestamp":""},"1685675000157":{"statisticsNum":315,"browserTime":1685675000157,"timestamp":""},"1685675001156":{"statisticsNum":319,"browserTime":1685675001156,"timestamp":""},"1685675002156":{"statisticsNum":322,"browserTime":1685675002156,"timestamp":""},"1685675003157":{"statisticsNum":326,"browserTime":1685675003157,"timestamp":""},"1685675004156":{"statisticsNum":329,"browserTime":1685675004156,"timestamp":""},"1685675005156":{"statisticsNum":332,"browserTime":1685675005156,"timestamp":""},"1685675006167":{"statisticsNum":339,"browserTime":1685675006167,"timestamp":""},"1685675007157":{"statisticsNum":345,"browserTime":1685675007157,"timestamp":""},"1685675008419":{"statisticsNum":356,"browserTime":1685675008419,"timestamp":""},"1685675009156":{"statisticsNum":360,"browserTime":1685675009156,"timestamp":""},"1685675010156":{"statisticsNum":371,"browserTime":1685675010156,"timestamp":""},"1685675011155":{"statisticsNum":376,"browserTime":1685675011155,"timestamp":""},"1685675012174":{"statisticsNum":381,"browserTime":1685675012174,"timestamp":""},"1685675013242":{"statisticsNum":397,"browserTime":1685675013242,"timestamp":""},"1685675014157":{"statisticsNum":405,"browserTime":1685675014157,"timestamp":""},"1685675015155":{"statisticsNum":410,"browserTime":1685675015155,"timestamp":""},"1685675016157":{"statisticsNum":415,"browserTime":1685675016157,"timestamp":""},"1685675017157":{"statisticsNum":426,"browserTime":1685675017157,"timestamp":""},"1685675018194":{"statisticsNum":432,"browserTime":1685675018194,"timestamp":""},"1685675019203":{"statisticsNum":438,"browserTime":1685675019203,"timestamp":""},"1685675020156":{"statisticsNum":441,"browserTime":1685675020156,"timestamp":""},"1685675021155":{"statisticsNum":445,"browserTime":1685675021155,"timestamp":""},"1685675022171":{"statisticsNum":449,"browserTime":1685675022171,"timestamp":""},"1685675023245":{"statisticsNum":459,"browserTime":1685675023245,"timestamp":""},"1685675024204":{"statisticsNum":462,"browserTime":1685675024204,"timestamp":""},"1685675025233":{"statisticsNum":468,"browserTime":1685675025233,"timestamp":""},"1685675026179":{"statisticsNum":474,"browserTime":1685675026179,"timestamp":""},"1685675027157":{"statisticsNum":478,"browserTime":1685675027157,"timestamp":""},"1685675028157":{"statisticsNum":485,"browserTime":1685675028157,"timestamp":""},"1685675029156":{"statisticsNum":490,"browserTime":1685675029156,"timestamp":""},"1685675030156":{"statisticsNum":492,"browserTime":1685675030156,"timestamp":""},"1685675031156":{"statisticsNum":498,"browserTime":1685675031156,"timestamp":""},"1685675032156":{"statisticsNum":500,"browserTime":1685675032156,"timestamp":""},"1685675033156":{"statisticsNum":511,"browserTime":1685675033156,"timestamp":""},"1685675034156":{"statisticsNum":514,"browserTime":1685675034156,"timestamp":""},"1685675035157":{"statisticsNum":518,"browserTime":1685675035157,"timestamp":""},"1685675036157":{"statisticsNum":522,"browserTime":1685675036157,"timestamp":""},"1685675037157":{"statisticsNum":527,"browserTime":1685675037157,"timestamp":""},"1685675038157":{"statisticsNum":532,"browserTime":1685675038157,"timestamp":""},"1685675039180":{"statisticsNum":541,"browserTime":1685675039180,"timestamp":""},"1685675040155":{"statisticsNum":544,"browserTime":1685675040155,"timestamp":""},"1685675041156":{"statisticsNum":547,"browserTime":1685675041156,"timestamp":""},"1685675042354":{"statisticsNum":556,"browserTime":1685675042354,"timestamp":""},"1685675043156":{"statisticsNum":561,"browserTime":1685675043156,"timestamp":""},"1685675044237":{"statisticsNum":567,"browserTime":1685675044237,"timestamp":""},"1685675045157":{"statisticsNum":569,"browserTime":1685675045157,"timestamp":""},"1685675046160":{"statisticsNum":572,"browserTime":1685675046160,"timestamp":""},"1685675047156":{"statisticsNum":577,"browserTime":1685675047156,"timestamp":""},"1685675049018":{"statisticsNum":586,"browserTime":1685675049018,"timestamp":""},"1685675050093":{"statisticsNum":591,"browserTime":1685675050093,"timestamp":""},"1685675051018":{"statisticsNum":596,"browserTime":1685675051018,"timestamp":""},"1685675052018":{"statisticsNum":602,"browserTime":1685675052018,"timestamp":""},"1685675053019":{"statisticsNum":608,"browserTime":1685675053019,"timestamp":""},"1685675054024":{"statisticsNum":611,"browserTime":1685675054024,"timestamp":""},"1685675055022":{"statisticsNum":613,"browserTime":1685675055022,"timestamp":""},"1685675056075":{"statisticsNum":627,"browserTime":1685675056075,"timestamp":""},"1685675057664":{"statisticsNum":649,"browserTime":1685675057664,"timestamp":""},"1685675059025":{"statisticsNum":655,"browserTime":1685675059025,"timestamp":""},"1685675060020":{"statisticsNum":659,"browserTime":1685675060020,"timestamp":""},"1685675061021":{"statisticsNum":663,"browserTime":1685675061021,"timestamp":""},"1685675062033":{"statisticsNum":667,"browserTime":1685675062033,"timestamp":""},"1685675063095":{"statisticsNum":674,"browserTime":1685675063095,"timestamp":""},"1685675064041":{"statisticsNum":678,"browserTime":1685675064041,"timestamp":""},"1685675065019":{"statisticsNum":682,"browserTime":1685675065019,"timestamp":""},"1685675066027":{"statisticsNum":687,"browserTime":1685675066027,"timestamp":""},"1685675067019":{"statisticsNum":690,"browserTime":1685675067020,"timestamp":""},"1685675068033":{"statisticsNum":692,"browserTime":1685675068033,"timestamp":""},"1685675069074":{"statisticsNum":696,"browserTime":1685675069074,"timestamp":""},"1685675070445":{"statisticsNum":708,"browserTime":1685675070445,"timestamp":""},"1685675072072":{"statisticsNum":718,"browserTime":1685675072072,"timestamp":""},"1685675073018":{"statisticsNum":722,"browserTime":1685675073018,"timestamp":""},"1685675074039":{"statisticsNum":725,"browserTime":1685675074039,"timestamp":""},"1685675075024":{"statisticsNum":731,"browserTime":1685675075024,"timestamp":""},"1685675076019":{"statisticsNum":735,"browserTime":1685675076019,"timestamp":""},"1685675077079":{"statisticsNum":744,"browserTime":1685675077079,"timestamp":""},"1685675078715":{"statisticsNum":764,"browserTime":1685675078715,"timestamp":""},"1685675080260":{"statisticsNum":783,"browserTime":1685675080260,"timestamp":""},"1685675081203":{"statisticsNum":797,"browserTime":1685675081203,"timestamp":""},"1685675082156":{"statisticsNum":807,"browserTime":1685675082156,"timestamp":""},"1685675083157":{"statisticsNum":810,"browserTime":1685675083157,"timestamp":""},"1685675084157":{"statisticsNum":814,"browserTime":1685675084157,"timestamp":""},"1685675085156":{"statisticsNum":819,"browserTime":1685675085156,"timestamp":""},"1685675087164":{"statisticsNum":827,"browserTime":1685675087164,"timestamp":""},"1685675088160":{"statisticsNum":836,"browserTime":1685675088160,"timestamp":""},"1685675089156":{"statisticsNum":849,"browserTime":1685675089156,"timestamp":""},"1685675090364":{"statisticsNum":864,"browserTime":1685675090364,"timestamp":""},"1685675091157":{"statisticsNum":874,"browserTime":1685675091157,"timestamp":""},"1685675092156":{"statisticsNum":887,"browserTime":1685675092156,"timestamp":""},"1685675093157":{"statisticsNum":897,"browserTime":1685675093157,"timestamp":""},"1685675094276":{"statisticsNum":913,"browserTime":1685675094276,"timestamp":""},"1685675095157":{"statisticsNum":923,"browserTime":1685675095157,"timestamp":""},"1685675096156":{"statisticsNum":928,"browserTime":1685675096156,"timestamp":""},"1685675097981":{"statisticsNum":949,"browserTime":1685675097981,"timestamp":""},"1685675098157":{"statisticsNum":952,"browserTime":1685675098157,"timestamp":""},"1685675099156":{"statisticsNum":956,"browserTime":1685675099156,"timestamp":""},"1685675100156":{"statisticsNum":962,"browserTime":1685675100156,"timestamp":""},"1685675101157":{"statisticsNum":969,"browserTime":1685675101157,"timestamp":""},"1685675102156":{"statisticsNum":971,"browserTime":1685675102156,"timestamp":""},"1685675103157":{"statisticsNum":975,"browserTime":1685675103157,"timestamp":""},"1685675104156":{"statisticsNum":980,"browserTime":1685675104156,"timestamp":""},"1685675105194":{"statisticsNum":983,"browserTime":1685675105194,"timestamp":""},"1685675106157":{"statisticsNum":991,"browserTime":1685675106157,"timestamp":""},"1685675107376":{"statisticsNum":1001,"browserTime":1685675107376,"timestamp":""},"1685675108210":{"statisticsNum":1010,"browserTime":1685675108210,"timestamp":""},"1685675109157":{"statisticsNum":1013,"browserTime":1685675109157,"timestamp":""},"1685675110157":{"statisticsNum":1018,"browserTime":1685675110157,"timestamp":""},"1685675111156":{"statisticsNum":1022,"browserTime":1685675111156,"timestamp":""},"1685675112156":{"statisticsNum":1028,"browserTime":1685675112156,"timestamp":""},"1685675113196":{"statisticsNum":1038,"browserTime":1685675113196,"timestamp":""},"1685675114157":{"statisticsNum":1047,"browserTime":1685675114157,"timestamp":""},"1685675115156":{"statisticsNum":1057,"browserTime":1685675115156,"timestamp":""},"1685675116156":{"statisticsNum":1067,"browserTime":1685675116156,"timestamp":""},"1685675117157":{"statisticsNum":1081,"browserTime":1685675117157,"timestamp":""},"1685675118156":{"statisticsNum":1083,"browserTime":1685675118156,"timestamp":""},"1685675119157":{"statisticsNum":1085,"browserTime":1685675119157,"timestamp":""},"1685675120157":{"statisticsNum":1090,"browserTime":1685675120157,"timestamp":""},"1685675121156":{"statisticsNum":1094,"browserTime":1685675121156,"timestamp":""},"1685675122156":{"statisticsNum":1097,"browserTime":1685675122156,"timestamp":""}}
let arr = []
for(i in strin){
    arr.push(strin[i]['statisticsNum'])
}
var numArr = arr.map(function(str) {
  return parseInt(str);
});
numArr.sort(function(a, b) {
    return a - b;
  });

  console.log(numArr)
function findMaxDiff(arr) {
  // 将数组按照升序排列
  arr.sort(function(a, b) {
    return a - b;
  });
  
  var maxDiff = 0;
  var index1 = 0;
  var index2 = 1;
  
  // 遍历数组找到相邻两个元素差值最大的一组
  while (index2 < arr.length) {
    var diff = arr[index2] - arr[index1];
    if (diff > maxDiff) {
        // if(diff == 172){
        //     console.log(arr[index2],'')
        // }
      maxDiff = diff;
    }
    index1++;
    index2++;
  }
  
  return maxDiff;
}

var diffs = [];
for (var i = 0; i < numArr.length - 1; i++) {
  var diff = arr[i+1] - arr[i];
  diffs.push(diff);
}

// 计算差值的平均值
var sum = diffs.reduce(function(prev, curr) {
  return prev + curr;
});
var avgDiff = sum / diffs.length;
console.log(avgDiff,'平均值')

// var arr = [3, 10, 2, 8, 4, 5];
var maxDiff = findMaxDiff(numArr);
console.log(maxDiff,'最大值'); // 输出结果为 8
console 命令行工具 X clear

                    
>
console