Question:
I have an array of objects in Javascript and I want to collect just the given key and value from the list. How would one do this? I feel like I have over engineered the solution but maybe not.I wasn’t sure if there was a cleaner way of doing this.
The results should be a list of objects containing just the key ‘id’ and id ‘value’.
If you have better answer, please add a comment about this, thank you!