mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-21 18:48:37 +00:00
16 lines
No EOL
306 B
Markdown
16 lines
No EOL
306 B
Markdown
# `isEmpty()`
|
|
|
|
The isEmpty method returns true if the collection is empty; otherwise, false is returned:
|
|
|
|
```js
|
|
collect().isEmpty();
|
|
// true
|
|
|
|
collect([]).isEmpty();
|
|
// true
|
|
|
|
collect({}).isEmpty();
|
|
// true
|
|
```
|
|
|
|
[View source on GitHub](https://github.com/ecrmnn/collect.js/blob/master/src/methods/isEmpty.js) |