override([parent], property, callback);
Override the behavior of existing functions.
parent
is the object containing the function to be called, it can be:- omitted: the
window
object is used; - a constructor function (e.g., String): its prototype is used;
- omitted: the
- an object: used as it is.