supermixer
supermixer copied to clipboard
Implement a hook/event to notify when properties collide
The hook must be one of the options passed to the factory functions.
The following should work:
import mixer from 'supermixer';
const mix = mixer({
onOverwrite: console.log
});
mix({prop: 1}, {prop: 2});
Should print:
2 1 "props"