app.js
// Filtering function - it uses `name` and `username` properties of an item to find a match.
Filtering function - it uses `name` and `username` properties of an item to find a match.
Filtering function - it uses ` name ` and ` username ` properties of an item to find a match .
function isItemMatching( item ) {
            const searchString = queryText.toLowerCase();
            return (
                item.name.toLowerCase().includes( searchString ) ||
                item.id.toLowerCase().includes( searchString )
            );
        }
function isItemMatching ( item ) { const searchString = queryText . toLowerCase ( ) ; return ( item . name . toLowerCase ( ) . includes ( searchString ) || item . id . toLowerCase ( ) . includes ( searchString ) ) ; }
Filtering function - it uses `name` and `username` properties of an item to find a match.
Filtering function - it uses ` name ` and ` username ` properties of an item to find a match .
// Make the search case-insensitive. // Include an item in the search results if name or username includes the current user input.