I want to add or override some standard methods of Object, Function and Array (e.g., like suggested in this answer) in node.js application. How should I do all the "patches" in just one module so that it affects all my other modules?
Will it be enough if I do it in a module that is just require
'd or it won't work because the two modules have different global namespaces so they have different Object?... Or should I run some initialisation function after require
that makes all these "patches" working in this module too?