code: function booleanNonStrict(validatedObject, errorText) {
    if (!_.isBoolean(validatedObject)) {
      if (
        !_.isString(validatedObject) ||
        (validatedObject.toLowerCase() !== 'false' && validatedObject.toLowerCase() !== 'true')
      ) {
        throw new ValidationError(errorText || 'Validated object is not Boolean');
      }
    }
    return validatedObject;
  }
docs: Checks value to be a boolean or a (case-insensitive) 'true' or 'false' string
  @param {*} validatedObject
  @param {String} [errorText] - message for error thrown if validation fails
  @returns {*} validatedObject