Skip to content
Advertisement

Copy obj filtering selected elements in javascript

I’m trying to create a new obj similar to my input, but containing only the elements from a selected id list.

JavaScript

Advertisement

Answer

Use Array.filter

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement