Files
rspade_system/node_modules/collect.js/docs/api/pull.md
2025-12-03 21:28:08 +00:00

357 B
Executable File

pull()

The pull method removes and returns an item from the collection by its key:

const collection = collect({
  firstname: 'Michael',
  lastname: 'Cera',
});

collection.pull('lastname');

// Cera

collection.all();

// { firstname: 'Michael' }

View source on GitHub