• 判断min <= num <= max

    参数

    • value: number
    • 可选__namedParameters: readonly [undefined | number, undefined | number]

    返回 boolean

    inRange(0, [undefined as any, 100]); // true
    inRange(0, [0]); // true
    inRange(0, [1]); // false
    inRange(0, [1, 2]); // false