I am learning javascript and this may be a basic question, please help me to acheive below.
I am constructing an array inside obejct like below to use data later. Now, i have to send category as "Help" and need to get all it's subcategory values dynamically.
[
{"category":"Help","subcategory":"Email"},
{"category":"Help","subcategory":"application"},
{"category":"Help","subcategory":"Software"},
{"category":"Help","subcategory":"Hardware"},
{"category":"Request","subcategory":"Access"},
{"category":"Request","subcategory":"Remote"},
]
Thanks in advance