Last active
June 3, 2019 12:18
-
-
Save ZackFox/fe47f336c46c7341b69d169107d7e70c 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
function Obj (){ | |
const _ins = this; | |
const _proto = Obj.prototype; | |
Obj = function(){ | |
return _ins; | |
} | |
Obj.prototype = _proto | |
Obj.prototype.constructor = Obj; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment