I have a javascript object that looks similar to this:
object {
attribute[1424]1405: 149,
attribute[1425]1406: 149,
attribute[1426]1407: 149,
attribute[1426]1408: 149,
attribute[1649]2116: 149,
attribute[1649]2117: 179,
attribute[1649]2408: 119
}
I'm trying to remove all properties that don't begin with attribute[1649]
(stored in a variable called conditionID
). Is there some sort of filter, similar to !:contains()
that I can run against the object with a delete
command?