I have a javascript object like {"1":true,"2":false,"3":true}
I want to create a javascript array like [1,3] by taking the keys whose value is true.
How can I do that?
I have a javascript object like {"1":true,"2":false,"3":true}
I want to create a javascript array like [1,3] by taking the keys whose value is true.
How can I do that?