Created
October 4, 2019 11:08
-
-
Save Reedyn/8ad3b22bf96aad279f8cf9571b2eab35 to your computer and use it in GitHub Desktop.
Constructor function
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 constructor(spec) { | |
let {member} = spec; | |
const {other} = other_constructor(spec); | |
const method = () => { | |
// 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