We do have ground fault circuit interrupt (GFCI) outlets, which are required when a socket is within a certain distance of a water source but can be installed on all outlets if you want. They have a little breaker inside that trips automatically if it detects a problematic difference in current flow.
They’re not on/off switches but you could press the “test” button on the outlet to break the circuit.
I’ve also seen some whole outlets that are switched on/off from a light switch elsewhere in the room. Those are super annoying because there’s no required indication that they work that way so you get to find out for yourself.
We do have ground fault circuit interrupt (GFCI) outlets, which are required when a socket is within a certain distance of a water source but can be installed on all outlets if you want. They have a little breaker inside that trips automatically if it detects a problematic difference in current flow.
They’re not on/off switches but you could press the “test” button on the outlet to break the circuit.
I’ve also seen some whole outlets that are switched on/off from a light switch elsewhere in the room. Those are super annoying because there’s no required indication that they work that way so you get to find out for yourself.