simplified check for type "integer"

master
Evgeny Poberezkin 2015-05-31 01:11:32 +01:00
parent 5fdf8ff720
commit 089ac03b1b
2 changed files with 2 additions and 5 deletions

View File

@ -1,8 +1,5 @@
{{## def.isInteger:
dataType == 'number' &&
(data === parseInt(data) ||
data > 9007199254740992 ||
data < -9007199254740992)
dataType == 'number' && !(data % 1)
#}}

View File

@ -1,6 +1,6 @@
{
"name": "ajv",
"version": "0.1.1",
"version": "0.1.2",
"description": "Another JSON schema Validator",
"main": "lib/ajv.js",
"scripts": {