@@ -46,14 +46,67 @@ npm i @techmmunity/utils
4646
4747# Docs
4848
49+ ## Miscellaneous
50+
51+ | function | description |
52+ | ---------- | ----------------------------------------------- |
53+ | ` cleanObj ` | Remove undefined and null values from an object |
54+
55+ ## ` get* `
56+
4957| function | description |
5058| ---------------------- | ---------------------------------------------------------------------- |
51- | ` cleanObj ` | Remove undefined and null values from an object |
5259| ` getArrayUniqueValues ` | Remove duplicated values of an array (only work with primitive values) |
60+ | ` getHexColorLuma ` | Return the color luma of a hex color |
5361| ` getEnumValues ` | Return the enum values |
5462| ` getTypeof ` | Fix native "typeof" |
55- | ` hasRequiredEnvVars ` | Verify if all env vars are defined |
56- | ` isEmptyArray ` | Checks if is an array and it's empty |
57- | ` isEmptyObject ` | Checks if is an object and it's empty |
58- | ` isNotEmptyArray ` | Checks if is an array and it's NOT empty |
59- | ` isNotEmptyObject ` | Checks if is an object and it's NOT empty |
63+
64+ ## ` has* `
65+
66+ | function | description |
67+ | -------------------- | ---------------------------------- |
68+ | ` hasEmojis ` | Return true if value has emojis |
69+ | ` hasHtmlTags ` | Return true if value has html tags |
70+ | ` hasRequiredEnvVars ` | Verify if all env vars are defined |
71+ | ` hasUrl ` | Return true if value has a url |
72+
73+ ## ` is* `
74+
75+ | function | description |
76+ | ------------------ | ------------------------------------------------------------ |
77+ | ` isBrazilianPhone ` | Return true if value is a brazilian phone |
78+ | ` isCpf ` | Return true if value is a CPF |
79+ | ` isDarkHexColor ` | Return true if value is a dark hex color |
80+ | ` isDate ` | Return true if value is a valid date in the specified format |
81+ | ` isDateDMY ` | Return true if value is a valid date DD-MM-YYY |
82+ | ` isDateDMYS ` | Return true if value is a valid date DD/MM/YYY |
83+ | ` isDateMDY ` | Return true if value is a valid date MM-DD-YYY |
84+ | ` isDateMDYS ` | Return true if value is a valid date MM/DD/YYY |
85+ | ` isDateYMD ` | Return true if value is a valid date YYYY-MM-DD |
86+ | ` isDateYMDS ` | Return true if value is a valid date YYYY/MM/DD |
87+ | ` isDivisibleByTen ` | Return true if value is divisible by ten |
88+ | ` isEmail ` | Return true if value is a valid email |
89+ | ` isEmoji ` | Return true if value is an emoji (has some false-positives!) |
90+ | ` isEmptyArray ` | Checks if is an array and it's empty |
91+ | ` isEmptyObject ` | Checks if is an object and it's empty |
92+ | ` isEven ` | Return true if value is a even number |
93+ | ` isHerokuApiKey ` | Return true if value is a heroku api key |
94+ | ` isHexColor ` | Return true if value is a valid hex color |
95+ | ` isIpv4 ` | Return true if value is a valid ipv4 |
96+ | ` isIpv4WithMask ` | Return true if value is a valid ipv4 with mask |
97+ | ` isLeap ` | Return true if value is a leap year |
98+ | ` isLightHexColor ` | Return true if value is a light hex color |
99+ | ` isMaskedCpf ` | Return true if value is a masked CPF |
100+ | ` isNumeric ` | Return true if value is a numeric string |
101+ | ` isOdd ` | Return true if value is a odd number |
102+ | ` isStrongPassword ` | Return true if value is a strong password |
103+ | ` isUrl ` | Return true if value is a valid url |
104+ | ` isUsername ` | Return true if value is a valid username |
105+ | ` isUuidV4 ` | Return true if value is a valid uuid (v4) |
106+
107+ ## ` isNot* `
108+
109+ | function | description |
110+ | ------------------ | ----------------------------------------- |
111+ | ` isNotEmptyArray ` | Checks if is an array and it's NOT empty |
112+ | ` isNotEmptyObject ` | Checks if is an object and it's NOT empty |
0 commit comments