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