Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim
Created February 23, 2017 15:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save vdeturckheim/e538957b43cd805975a6782d55b9dbbd to your computer and use it in GitHub Desktop.
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