config shouldn't be modified on the fly.
Add method like provideConfig(modifierType, modifierFn, config) to apply new config. It needs in order to prevent partial config change during modifier runtime and also to prevent unexpected situations with changing config object by reference.
Modifier must be a function which accepts config parameter and should return a function which accepts level and parts
const config = Object.assign({}, modifierFn.defaults, modifierConfig);
modifiers.set(modifierFn, modifierFn(config, debug));
debug - true/false if debug is enabled
config shouldn't be modified on the fly.
Add method like provideConfig(modifierType, modifierFn, config) to apply new config. It needs in order to prevent partial config change during modifier runtime and also to prevent unexpected situations with changing config object by reference.
Modifier must be a function which accepts config parameter and should return a function which accepts level and parts
debug - true/false if debug is enabled