-
-
Save manojjsm/dfc320a17c68b4541a33 to your computer and use it in GitHub Desktop.
make this better.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function __tailingFn () { | |
for (var i = arguments.length; i--;) { | |
if (typeof arguments[i] == 'function') { | |
var fn = arguments[i]; | |
arguments[i] = undefined; | |
return fn; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment