Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `withDefaults(props, defaults)` returning props merged over defaults, so provided props win.
+ 1 hidden test run on Submit.
{ ...defaults, ...props } merges so that any prop the caller passed wins, while unspecified ones fall back to the default.
Run your code to see results.