Skip to content

Commit

Permalink
Merge pull request #3222 from paulofreitas/collection-containsstrict
Browse files Browse the repository at this point in the history
[5.4] Document Collection::containsStrict() method
  • Loading branch information
taylorotwell authored Mar 25, 2017
2 parents befea2f + b346638 commit b7c11ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ For the remainder of this documentation, we'll discuss each method available on
[collapse](#method-collapse)
[combine](#method-combine)
[contains](#method-contains)
[containsStrict](#method-containsstrict)
[count](#method-count)
[diff](#method-diff)
[diffKeys](#method-diffkeys)
Expand Down Expand Up @@ -246,6 +247,12 @@ Finally, you may also pass a callback to the `contains` method to perform your o

// false

The `contains` method uses "loose" comparisons when checking item values, meaning a string with an integer value will be considered equal to an integer of the same value. Use the `containsStrict` method to filter using "strict" comparisons.

#### `containsStrict()` {#collection-method}

This method has the same signature as the `contains` method; however, all values are compared using "strict" comparisons.

<a name="method-count"></a>
#### `count()` {#collection-method}

Expand Down

0 comments on commit b7c11ba

Please sign in to comment.