How do i compare a [null] list?
Advertisements I have a list which is returning [null] but I want to replace that with [] I’m using useEffect() but I’m literally not able to find an expression that returns true when compared with null. I’ve tried: listToCompare === null // false listToCompare[0] === null // false listToCompare === undefined // false listToCompare ===… Read More How do i compare a [null] list?