supermixer icon indicating copy to clipboard operation
supermixer copied to clipboard

Implement a hook/event to notify when properties collide

Open koresar opened this issue 9 years ago • 0 comments

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"

koresar avatar Jun 28 '15 02:06 koresar