Javascript Number isInteger(value) {
Number.isInteger = Number.isInteger || function(value) { return typeof value === 'number' && isFinite(value) && //from ww w . j a v a 2 s . c o m Math.floor(value) === value; };