code: function _boolToNum(value, numTrue, numFalse, defaultVal) {
          if (typeof value === 'boolean') {
              return value ? numTrue : numFalse;
          }
          return typeof value === 'number' ? value : defaultVal;
      }
docs: Normalizes and tries to get a numeric value. This is used for options that support both Boolean and Number values.