Array.prototype.outputMaxPrice  = function outputMaxPrice (array) {

  const item1 = Math.max.apply( Math, array );

  const item2 = Math.min.apply( Math, array );

  return item1 - item2;
}

const array = new Array;

array.outputMaxPrice ([1, 3, 33, 44])   //  43

相关文章:

  • 2021-06-30
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2021-08-14
  • 2022-12-23
  • 2021-09-01
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案