DEV Community

Discussion on: Omit unwanted data from Object using JavaScript

Collapse
 
billriot profile image
BillRiot

Sorry to be blunt, but this is a fairly useless example. If you're going to have to pass in a function to filter the keys you want, you might as well just write a simple mapping for the object you want instead.