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.

17 lines
314 B

4 years ago
  1. # `keys()`
  2. The keys method returns all of the collection's keys:
  3. ```js
  4. const collection = collect([
  5. {
  6. club: 'Liverpool',
  7. nickname: 'The Reds',
  8. },
  9. ]);
  10. keys = collection.keys();
  11. // ['club', 'nickname']
  12. ```
  13. [View source on GitHub](https://github.com/ecrmnn/collect.js/blob/master/src/methods/keys.js)