DEV Community

loading...

Discussion on: How to check if an array is empty using Javascript?

Collapse
pixodev profile image
PixoDev • Edited

I’ve been using if(!array.length) during my whole carrier, which benefits does your util have over it?

Collapse
jonrandy profile image