code: function getEnvNumericalValue(envValue, defaultVal) {
    var limit = defaultVal;
    if (envValue) {
      limit = parseInt(envValue,10);
      if (isNaN(limit)) {
        limit = defaultVal;
      }
    }
    return limit;
  }
docs: parse the value if it is present and if it is not NaN return that else return the default