Support for `isEmpty`
There was a pull request adding an isEmpty function, but it was closed with a recommendation to use language primitives instead. I almost agree, but for objects, it becomes too cumbersome to check emptiness with obj && Object.keys(obj).length === 0. Having isEmpty(obj) would significantly improve readability and ease of use. Can we reconsider adding it for objects?
me too~
same need this too
I agree, handy indeed
We now have a isEmpty function in es-toolkit/compat.
Let us add a new function isEmptyObject in our main library in the next version (v1.28.0).
Is isEmptyObject still planned @raon0211 ?