I have object which contains array, I want to filter the object based on array value.
For example:
{
"sun":["sleep","walk"],
"mon":["read","dance","ride"],
"tue":["work","dance","sleep"],
}
if I enter keyword "sleep" then result should be as follows
{
"sun":["sleep"],
"tue":["sleep"],
}
Any suggestion would be helpful