Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `pickProps(props, keys)` returning a new object with only the given keys that exist on `props`, in the order of `keys`.
+ 1 hidden test run on Submit.
Walking the keys array and copying only existing props builds a subset object in the requested order, without touching the original.
Run your code to see results.