3 ms·
From the video: function constructor(spec) { let {member} = spec, {other} = other_constructor(spec), method = function () {
by davej 11y ago
From the video:
function constructor(spec) {
let {member} = spec,
{other} = other_constructor(spec),
method = function () {
// accesses member, other, method, spec
};
return Object.freeze({
method,
other,
});
}