Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 118: Enhanced Object Literals
Implement `pick(obj, keys)` returning a new object with only the entries whose key is in `keys` and present in `obj`, in the order given by `keys`.
+ 1 hidden test run on Submit.
Iterating the keys array and copying present properties yields a subset in the requested order.
Run your code to see results.