Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme for contains -> includes #394

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Watch a free video overview presented by EmberMap:
- [`filter-by`](#filter-by)
- [`reject-by`](#reject-by)
- [`find-by`](#find-by)
- [`includes`](#includes)
- [`intersect`](#intersect)
- [`invoke`](#invoke)
- [`union`](#union)
Expand All @@ -66,7 +67,6 @@ Watch a free video overview presented by EmberMap:
- [`range`](#range)
- [`join`](#join)
- [`compact`](#compact)
- [`contains`](#contains)
- [`append`](#append)
- [`chunk`](#chunk)
- [`without`](#without)
Expand Down Expand Up @@ -392,6 +392,18 @@ Returns the first entry matching the given value.

**[⬆️ back to top](#table-of-contents)**

#### `includes`
Checks if a given value or sub-array is included within an array.

```hbs
{{includes selectedItem items}}
{{includes 1234 items}}
{{includes "First" (w "First Second Third") }}
{{includes (w "First Second") (w "First Second Third")}}
```

**[⬆️ back to top](#table-of-contents)**

#### `intersect`
Creates an array of unique values that are included in all given arrays.

Expand Down Expand Up @@ -542,18 +554,6 @@ Removes blank items from an array.

**[⬆️ back to top](#table-of-contents)**

#### `contains`
Checks if a given value or sub-array is contained within an array.

```hbs
{{contains selectedItem items}}
{{contains 1234 items}}
{{contains "First" (w "First Second Third") }}
{{contains (w "First Second") (w "First Second Third")}}
```

**[⬆️ back to top](#table-of-contents)**

#### `append`
Appends the given arrays and/or values into a single flat array.

Expand Down