Skip to content
Advertisement

how to find certain key by its value into mixed objects array?

JavaScript

I need to find keys by all coincidence into its value/values

example:

find key by id=205, output: 'first', 'second'

find key by id=208, output: 'first'

Advertisement

Answer

You can do something like this

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