Using JS or jQuery how to delete the key-value pair which the value is of type “Null
” & ""
.
e.g.
before:
Object {style: "fruit", origin: "Thailand", day: "18d", color: "", weight: null}
alter:
Object {style: "fruit", origin: "Thailand", day: "18d"}