This would definitely work, but seems a little dangerous to be modifying an external library’s…

It’s not dangerous, and you could find this approach in the Rx official docs.

You are not modify anything, just extending. 
Also, it’s a method that related to observables and could not affect native JS “things.”

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.