Is there a way to tell if a function in JavaScript is getting over written?
问题 Is there a way to tell if a function I've written is getting overwritten or redefined? For example, say a guy named Jack has the function below: // Jack's function on team 1 function doSomething() { // doing things } and one day he finds out that a teammate in the north pole of planet Zaxxon has used the same function name: // Zaxar's function on team 2 function doSomething() { // doing something else } As you can see Zaxar and Jack are using the same function name. Neither Zaxar nor John