This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example: https://codepen.io/marcelo-ribeiro/pen/OJmVOyW | |
const accentsMap = new Map([ | |
["A", "Á|À|Ã|Â|Ä"], | |
["a", "á|à|ã|â|ä"], | |
["E", "É|È|Ê|Ë"], | |
["e", "é|è|ê|ë"], | |
["I", "Í|Ì|Î|Ï"], | |
["i", "í|ì|î|ï"], | |
["O", "Ó|Ò|Ô|Õ|Ö"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header> | |
<ion-toolbar color="secondary" [class.show-background]="showToolbar"> | |
<ion-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-buttons slot="end"> | |
<ion-button> | |
<ion-icon slot="icon-only" name="logo-facebook"></ion-icon> | |
</ion-button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const products = [ | |
{id: 1, title: "Trim Dress", category: "women", collection: ["new", "featured"]}, | |
{id: 2, title: "Belted Dress", category: "women", collection: ["featured"]}, | |
{id: 3, title: "Fitted Dress", category: "men", collection: ["new"]} | |
]; | |
const categories = new Set( | |
products.map(product => product.category) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const list = [ | |
{ name: "Marcelo Ribeiro", short_name: "tchelo" }, | |
{ name: "Leonardo Costa", short_name: "leo" }, | |
{ name: "Victor Tanure", short_name: "vitrola" }, | |
{ name: "Matheus Oliveira", short_name: "rary" } | |
]; | |
let filteredList = [...list]; | |
const searchProps = ["name", "short_name"]; | |
let timeout = null; | |
const removeAccents = (text) => { return text; }; |
OlderNewer