Default properties aren't applied to undefined set properties.
// Now the default property of 'background'
// can't be applied to the configuration object because it is set.
MY_STATE.set('jeff', {background: undefined});
// internal: config.background; // Returns 'undefined'
🎯 Expected behavior
Default properties should also be applied to undefined set properties.
🐛 Bug report
🤖 Current Behavior
Default properties aren't applied to
undefined
set properties.🎯 Expected behavior
Default properties should also be applied to
undefined
set properties.💡 Suggested solution(s)
see
benchmarks/typescript/defineConfig