HOME


sh-3ll 1.0
DIR:/proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/type/integer/
Upload File :
Current File : //proc/self/cwd/bright.medisavehealthcarebd.com/node_modules/type/integer/ensure.js
"use strict";

var resolveException = require("../lib/resolve-exception")
  , coerce           = require("./coerce");

module.exports = function (value/*, options*/) {
	var coerced = coerce(value);
	if (coerced !== null) return coerced;
	return resolveException(value, "%v is not an integer", arguments[1]);
};