UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

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; };