Created
April 13, 2017 09:14
-
-
Save DuncanWilder/8823a115a94bb2a078ab404639d9e0f8 to your computer and use it in GitHub Desktop.
Wrap window object for testing
This file contains hidden or 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 $window() { | |
function wrapperFunction(value) { | |
return value; | |
} | |
return wrapperFunction(window); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment