From 6f48f6b5b159a48b7078d37f51372176ada28a1b Mon Sep 17 00:00:00 2001 From: Viktor F Date: Tue, 12 Jan 2021 12:36:49 +0100 Subject: [PATCH 1/2] update readme for contains -> includes --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7df2cbeb..19ce6424 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Watch a free video overview presented by EmberMap: - [`range`](#range) - [`join`](#join) - [`compact`](#compact) - - [`contains`](#contains) + - [`includes`](#includes) - [`append`](#append) - [`chunk`](#chunk) - [`without`](#without) @@ -542,14 +542,14 @@ 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. +#### `includes` +Checks if a given value or sub-array is included within an array. ```hbs -{{contains selectedItem items}} -{{contains 1234 items}} -{{contains "First" (w "First Second Third") }} -{{contains (w "First Second") (w "First Second Third")}} +{{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)** From 4c1a3059bd34831cd1448aeeb4e46d610636fb35 Mon Sep 17 00:00:00 2001 From: Viktor F Date: Tue, 12 Jan 2021 14:47:53 +0100 Subject: [PATCH 2/2] reorder list --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 19ce6424..58732d9f 100644 --- a/README.md +++ b/README.md @@ -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) @@ -66,7 +67,6 @@ Watch a free video overview presented by EmberMap: - [`range`](#range) - [`join`](#join) - [`compact`](#compact) - - [`includes`](#includes) - [`append`](#append) - [`chunk`](#chunk) - [`without`](#without) @@ -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. @@ -542,18 +554,6 @@ Removes blank items from an array. **[⬆️ 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)** - #### `append` Appends the given arrays and/or values into a single flat array.