Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Conversation

@aleen42
Copy link

@aleen42 aleen42 commented Jul 12, 2019

I think the better way to show a mixin solution is just to code like the following snippet:

/** mixin solution */
const mix = obj => ({
    with : (...mixins) => mixins.reduce((c, mixin) => shallowMerge(c, mixin), obj),
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant