I want to use js search in object, but with some feature. I clearly run this answer.
[
{
"foo" : "bar",
"bar" : "sit"
},
{
"foo" : "lorem",
"bar" : "ipsum"
},
{
"foo" : "dolor",
"bar" : "amet"
}
]
This is fine, but I want to search sıt
or sit
and result will below.
[
{
"foo" : "bar",
"bar" : "sit"
}
]
How can I do this?