UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

12 lines (8 loc) 239 B
'use strict'; var isInteger = require('../is-integer/shim') , maxValue = require('../max-safe-integer') , abs = Math.abs; module.exports = function (value) { if (!isInteger(value)) return false; return abs(value) <= maxValue; };