Skip to content

Commit

Permalink
Merge 4341086 into 8df6408
Browse files Browse the repository at this point in the history
  • Loading branch information
VovanR committed Jun 6, 2018
2 parents 8df6408 + 4341086 commit 8ddc858
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@ toggleInArray(
//=> [{v: 1}, {v: 3}]
```

## API

### `toggleInArray(arr, value, [predicate])`

Returns an `Array` with `value` if `arr` is not includes this `value`<br>
Returns an `Array` without `value` if `arr` is includes this `value`

#### arr
*Required*<br>
Type: `Array`

#### value
*Required*<br>
Type: `Array`

#### predicate
Type: `Function`<br>
Default: `(a, b) => a === b` *Strict equality comparison*

## License
MIT © [Vladimir Rodkin](https://github.com/VovanR)

Expand Down

0 comments on commit 8ddc858

Please sign in to comment.