Last active
February 11, 2024 20:45
-
-
Save justyn-clark/9edb3e861ee97dfd7a4cc5da817f77f8 to your computer and use it in GitHub Desktop.
classless OOP
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 constructor(spec) { | |
let | |
{member} = spec, | |
{other} = other_constructor(spec), | |
method = function () { | |
// member, other, method, spec | |
}; | |
return Object.freeze({ | |
method, | |
other | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment