7.2.6 IsInteger ( argument )

抽象操作 IsInteger 确定 argument 是否为有限的整数数值。

  1. 如果 Type(argument) 不是 Number 类型,则返回 false
  2. 如果 argumentNaN+∞-∞,返回 false
  3. 如果 floor(abs(argument)) ≠ abs(argument),则返回 false
  4. 此外,返回 true

results matching ""

    No results matching ""