sheng-tool
    Preparing search index...

    Function distance

    • 极差,为了与范围(range)区别,函数名设置为 distance

      Parameters

      • arr: number[]

        被统计的数据

      Returns number

      0.0.1

      distance([1, 2, 3, 4, 5])    // 4
      distance([]) // NaN