Class names are CamelCase.
Methods and variables are snake_case.
Methods with a ? suffix will return a boolean.
| // Example: https://codepen.io/marcelo-ribeiro/pen/OJmVOyW | |
| const accentsMap = new Map([ | |
| ["A", "Á|À|Ã|Â|Ä"], | |
| ["a", "á|à|ã|â|ä"], | |
| ["E", "É|È|Ê|Ë"], | |
| ["e", "é|è|ê|ë"], | |
| ["I", "Í|Ì|Î|Ï"], | |
| ["i", "í|ì|î|ï"], | |
| ["O", "Ó|Ò|Ô|Õ|Ö"], |
| import {SetStateAction, useCallback} from 'react'; | |
| import {create} from "zustand"; | |
| export type EqualityFn<T> = (left: T | null | undefined, right: T | null | undefined) => boolean; | |
| // eslint-disable-next-line @typescript-eslint/ban-types | |
| const isFunction = (fn: unknown): fn is Function => (typeof fn === 'function'); | |
| /** | |
| * Create a global state |