Created
July 25, 2017 05:01
-
-
Save ninadhatkar/38f94997361b20a36f1d8b04ca0cb773 to your computer and use it in GitHub Desktop.
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
module.exports = function(arg){ | |
var localArg = arg; | |
while(typeof localArg === "function"){ | |
localArg = localArg(); | |
} | |
return localArg; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment