You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
306 B

4 years ago
  1. # `isEmpty()`
  2. The isEmpty method returns true if the collection is empty; otherwise, false is returned:
  3. ```js
  4. collect().isEmpty();
  5. // true
  6. collect([]).isEmpty();
  7. // true
  8. collect({}).isEmpty();
  9. // true
  10. ```
  11. [View source on GitHub](https://github.com/ecrmnn/collect.js/blob/master/src/methods/isEmpty.js)