Closed edg2s closed 1 month ago
If the first argument is a variable which could be null or undefined, then Object.assign will throw.
We could convert to Object.assign( foo || {}, ... ) but in most cases this is unnecessary, so probably better to leave it to users to fix manually.
Object.assign( foo || {}, ... )
All modified and coverable lines are covered by tests :white_check_mark:
Please upload report for BASE (master@f3e29be). Learn more about missing BASE report.
master@f3e29be
If the first argument is a variable which could be null or undefined, then Object.assign will throw.
We could convert to
Object.assign( foo || {}, ... )
but in most cases this is unnecessary, so probably better to leave it to users to fix manually.