Live search in local storage

I want to make a live search on my page. But only search in the local data store, without a request to the api.

{{input key-up=(action 'search') placeholder="Live search ..."}}

{{#each documents as |document|}}

That’s the structure of my components .hbs file. What’s best practice to search live on key-up in input field and display only the matching titles in the each loop?