better way to check truthy / falsey from select

Hey all, currently checking if the length > 0 and <1 to check truthy / falsey is there a better way to do this with drizzle? if (existingUser.length > 0)
2 Replies
Nino
Nino6mo ago
I usually prefer using this method if(!existingUser.length) for falsy or if(existingUser.length) for turthy
sanser
sanser6mo ago
ye this works too just hoping there would he a nice wrapper around this like .empty()
Want results from more Discord servers?
Add your server