Here's a fun little TS snippet for grabbing all the keys starting with `on` from an object.
How does it work? Using '&' on keyof with a template literal means that only the ones that match _both_ are preserved.
How does it work? Using '&' on keyof with a template literal means that only the ones that match _both_ are preserved.