Skip to content

Implement a hook/event to notify when properties collide #5

@koresar

Description

@koresar

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions