Created
May 14, 2025 12:41
-
-
Save KleaTech/7678919369c023d01e1e70b37e52c41a to your computer and use it in GitHub Desktop.
Arbitrary object methods and properties in JavaScript
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 createPseudoObject() { | |
return new Proxy(new Function(), { get() { return createPseudoObject() } }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment