simplified check for type "integer"
parent
5fdf8ff720
commit
089ac03b1b
|
@ -1,8 +1,5 @@
|
|||
{{## def.isInteger:
|
||||
dataType == 'number' &&
|
||||
(data === parseInt(data) ||
|
||||
data > 9007199254740992 ||
|
||||
data < -9007199254740992)
|
||||
dataType == 'number' && !(data % 1)
|
||||
#}}
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ajv",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "Another JSON schema Validator",
|
||||
"main": "lib/ajv.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue