Why !! (double negation operator is used here)? [duplicate]
This question already has answers here: What is the !! (not not) operator in JavaScript? (36 answers) How does the double exclamation (!!) work in JavaScript? [duplicate] (1 answer) Closed 38 secs ago. const { hotelId } = useParams(); const { data: hotel } = useQuery( “fetchHotelById”, () => apiClient.fetchHotelById(hotelId || “”), { ** enabled: […]