I'm curious if there's a way to monkey patch an existing function within the angular/core package so that the modified function is always used instead of the original one. Just to clarify, I don't directly call this function myself; it's invoked by Angular itself.
More specifically, I want to alter this function without having to submit a pull request or fork Angular. For simplicity's sake, let's say I simply want to append console.log('changed') to the end of the function without changing anything else.