function isIntegerInRange(value, lowerLimit, upperLimit) {
        // Validate value is an integer
        if (!isInteger(value)) {
            return false;
        }

        // Validate integer is in range
        var hasLowerLimt = (typeof (lowerLimit) === "number"),
            hasUpperLimt = (typeof (upperLimit) === "number");

        return ((!hasLowerLimt || value >= lowerLimit) && (!hasUpperLimt || value <= upperLimit));
    }
function isIntegerInRange(value, lowerLimit, upperLimit) {
        // Validate value is an integer
        if (!isInteger(value)) {
            return false;
        }

        // Validate integer is in range
        var hasLowerLimt = (typeof (lowerLimit) === "number"),
            hasUpperLimt = (typeof (upperLimit) === "number");

        return ((!hasLowerLimt || value >= lowerLimit) && (!hasUpperLimt || value <= upperLimit));
    }
function isIntegerInRange ( value , lowerLimit , upperLimit ) { // Validate value is an integer if ( ! isInteger ( value ) ) { return false ; } // Validate integer is in range var hasLowerLimt = ( typeof ( lowerLimit ) === "number" ) , hasUpperLimt = ( typeof ( upperLimit ) === "number" ) ; return ( ( ! hasLowerLimt || value >= lowerLimit ) && ( ! hasUpperLimt || value <= upperLimit ) ) ; }
Used to validate whether type of unknown value is an integer, and, if so,
is it within the option lower and upper limits.

@param {*} value Value for which to validate its type
@param {number=} lowerLimit Optional lower limit (inclusive)
@param {number=} upperLimit Optional upper limit (inclusive)
@return {boolean} true if value is an interger, and optionally in specified range.
Used to validate whether type of unknown value is an integer and if so is it within the option lower and upper limits .
Check if value is an integer in the range lowerLimit and upperLimit