Say I have an object like so:
obj = {
property1: "Prop 1 value",
property2: "-",
property3: "Prop 3 value"
property4: "-"
}
If the property value equals "-" on a property I'd like to remove it from the object.
I've looked into for loops, but I don't even know if this is the right paradigm for working with an object.