Collect.js wrap() Method
The wrap() method in collect.js is used to wrap a particular set of values in a collection.
- In NodeJs:
npm install collect.js
- CDN for collect.js
wrap( object );
Parameters: This method accepts an array or object.
Return Value: It returns the object.