diff --git a/packages/docs/src/en/start-here.md b/packages/docs/src/en/start-here.md index 088642618..08fe66e85 100644 --- a/packages/docs/src/en/start-here.md +++ b/packages/docs/src/en/start-here.md @@ -282,6 +282,11 @@ return this.items.filter( This is all plain JavaScript. We are first getting the array of items (foo, bar, and baz) and filtering them using the provided callback: `i => i.startsWith(this.search)`. +To escape lower and upper letter cases use .toLowerCase() along with this.search to be like + +```this.search.toLowerCase() +``` + By passing in this callback to `filter`, we are telling JavaScript to only return the items that start with the string: `this.search`, which like we saw with `x-model` will always reflect the value of the input. You may notice that up until now, we haven't had to use `this.` to reference properties. However, because we are working directly inside the `x-data` object, we must reference any properties using `this.[property]` instead of simply `[property]`.