Created
February 14, 2023 20:56
-
-
Save colantuomo/4904c12b2f48d4549e67c8c400a096fc to your computer and use it in GitHub Desktop.
Revisions
-
colantuomo created this gist
Feb 14, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ ## Remove accents and normalize words ```Typescript export const removeAccents = (word: string) => word .toLowerCase() .normalize('NFD') .replace(/[\u0300-\u036f]/g, ''); ```