I need help filtering an object based on array values. For example:
{
"sun":["sleep","walk"],
"mon":["read","dance","ride"],
"tue":["work","dance","sleep"],
}
If I search for the keyword "sleep," the result should be:
{
"sun":["sleep"],
"tue":["sleep"],
}
Please share any suggestions you may have to accomplish this task. Thank you!