I have this:
const className = ev.target && ev.target.className;
in some cases typeof classname === 'object'
...does anyone know why that's the case and when it might be the case? I always thought it must be a string.
I actually found a case where it's an object on the StackOverflow page, but I can't find the element again.