This is a collection of utility functions (work in progress) that do a range of things. If you have some to contribute, please, contribute! 😄
- Finding missing objects/elements between two arrays;
- Check if a object is completely empty;
- Sorting an array by Brazillian date;
- Change an array's item index to another;
- Check if two objects are identical;
- Reorder and array based on a key and value, moving items to the end of this array;
- Reorder an specific item to the end of an array;
- Get the last day of current year and month, returning the full date (YYYY-MM-DD);
- Get the first day of current year and month, returning the full date (YYYY-MM-DD);
- (PT-BR) Formata um dado CPF ou CNPJ em string plano (sem caracteres especiais) nas suas devidas máscaras;
- (PT-BR) Formata um dado telefone em string plano (sem caracteres especiais) na sua devida máscara;
- Get current date with the format DD/MM/YYYY;
- Generate a random hexadecimal color;
- "Title Case" a "snake_case" word;
- Get a given percentage for a total number;
- Check if a float number has a given precision;