Pot.isInt

{Boolean} Pot.isInt ({Number|*} n)

Pot.js と PotLite.js で利用可能。

引数 n が整数かどうかチェックします。

引数 n が整数かどうか調べます。

n が整数なら true を返し、それ以外は false を返します。

debug(isInt(0));                       // true
debug(isInt(-524560620));              // true
debug(isInt(0.1205562));               // false
debug(isInt(1.5));                     // false
debug(isInt(12345));                   // true
debug(isInt(Number.MAX_VALUE));        // true
debug(isInt(Number.MAX_VALUE * 1000)); // false
debug(isInt(null));                    // false
debug(isInt((void 0)));                // false
debug(isInt('hoge'));                  // false
debug(isInt(''));                      // false
debug(isInt([100]));                   // false