my-idlers/node_modules/collect.js/docs/api/keys.md
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

314 B

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