Function assertPassword

  • Asserts that password is a string that matches confirmPassword. Will throw an Error otherwise.

    Parameters

    • password: any

      Password to assert.

    • confirmPassword: any

      Confirmation of password to match.

    Returns asserts password is string