Files
2025-12-03 21:28:08 +00:00

314 B
Executable File

keys()

The keys method returns all of the collection's keys:

const collection = collect([
  {
    club: 'Liverpool',
    nickname: 'The Reds',
  },
]);

keys = collection.keys();

// ['club', 'nickname']

View source on GitHub