handleSearch(event) { this.searchTerm = event.detail.value; const letter = this.searchTerm.toLowerCase(); this.allDomicileFlags = this.allDomicileFlagsOG.filter((item) => item.nm_card.toLowerCase().startsWith(letter)); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter