Skip to content

Commit c5a11b9

Browse files
committed
feat: implement Collection class
1 parent 614c920 commit c5a11b9

File tree

11 files changed

+953
-1131
lines changed

11 files changed

+953
-1131
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ npm install @secjs/utils
3232

3333
## Usage
3434

35+
### Collection
36+
37+
> Use the collection to work with arrays and objects. `Collection` uses
38+
> the [collect.js](https://www.npmjs.com/package/collect.js)
39+
> package under the hood. This class offers an (almost) identical api
40+
> to [`Laravel Collections`](https://laravel.com/docs/9.x/collections).
41+
42+
```js
43+
import { Collection } from '@secjs/utils'
44+
45+
const collection = new Collection([1, 2, 3])
46+
```
47+
3548
### File
3649

3750
> Use File to create an instance of a File, it's existing or not.

0 commit comments

Comments
 (0)