Alexandre Morgaut AMorgaut

View 0_reuse_code.js
1 2
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:8402379
1 2 3 4 5 6 7 8
function sayHook = function () {
// do some stuff
// call original say() method
return Object.getPrototypeOf(this).say.apply(this, Array.prototype.slice.call(arguments, 1));
}
 
obj.say = sayHook;
View example0.js
1 2
//the code of the example
ds.Employee.length
Something went wrong with that request. Please try again.