Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim vdeturckheim/dummyWrap.js Secret
Created Feb 23, 2017

Embed
What would you like to do?
var originalFunction = function (...) { … };
var wrap = function () {
// do something
var result = originalFunction.apply(this, arguments);
// do something else
Return result;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.