Write a function named pickFields that receives 2 parameters:
datafieldsThe function should return a new object that contains all properties of data whose name is present in the fields array.
data
=fields
=data
=fields
=Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro