Skip to content

Commit

Permalink
feat: implement Collection class
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Sep 21, 2022
1 parent 614c920 commit c5a11b9
Show file tree
Hide file tree
Showing 11 changed files with 953 additions and 1,131 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ npm install @secjs/utils

## Usage

### Collection

> Use the collection to work with arrays and objects. `Collection` uses
> the [collect.js](https://www.npmjs.com/package/collect.js)
> package under the hood. This class offers an (almost) identical api
> to [`Laravel Collections`](https://laravel.com/docs/9.x/collections).
```js
import { Collection } from '@secjs/utils'

const collection = new Collection([1, 2, 3])
```

### File

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

0 comments on commit c5a11b9

Please sign in to comment.