Aug 7, 2021
If the name of what you want is known, use .filter(). If it’s the name key of the first record, use Object.keys(). Could use Object.values () for the first scenario.
I suspect the problem it more complex though. Can you tell me more about the problem? Also, is it in an array of objects or in a database? Some databases, like PostgreSQL have ways of handling this.
Keep in touch.