mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-20 10:08:35 +00:00
306 B
306 B
isEmpty()
The isEmpty method returns true if the collection is empty; otherwise, false is returned:
collect().isEmpty();
// true
collect([]).isEmpty();
// true
collect({}).isEmpty();
// true