Collect.js pull() Method
The pull() method is used to remove an element from collection by given key and return the pulled element.
Parameters: The collect() method takes one argument that is converted into the collection and then pull() method is applied on it. The pull() method holds the key as parameter.
Return Value: This method returns the value of given key.
Below example illustrate the pull() method in collect.js: