code: function equal(validatedEntity, expectedEqualTo, errorText) {
    if (validatedEntity !== expectedEqualTo) {
      throw new ValidationError(
        errorText || `Validated entity ${validatedEntity} is not equal to ${expectedEqualTo}`
      );
    }
    return validatedEntity;
  }
docs: Checks value to equal specified entity (=== comparison)
  @param {*} validatedEntity
  @param {*} expectedEqualTo - if validated entity is not equal to this, throw an error
  @param {String} [errorText] - message for error thrown if validation fails
  @returns {number} validatedObject