I have a JS object here
{
"test1" : "",
"test2" : "apple",
"test3" : "oranges",
"test5" : ""
}
Is there a JS one-liner that can filter out all the properties with empty strings?
Expected result:
{
"test2" : "apple",
"test3" : "oranges",
}