I have this object and i want to only get the values that is not an empty string.
const obj = { a: "", b: "b" }
How can i filter out b from this object?
I have this object and i want to only get the values that is not an empty string.
const obj = { a: "", b: "b" }
How can i filter out b from this object?
const obj = { a: "", b: "b" }
console.log(Object.values(obj).filter(v=>v!==''))