Cleanup utility function in connection manager

This commit is contained in:
Bill Thornton
2025-04-21 17:33:29 -04:00
parent 3188c1bc6b
commit f688c1f223
6 changed files with 55 additions and 171 deletions
+8
View File
@@ -1,3 +1,11 @@
/**
* Checks if two string are equal ignoring case.
* @param str1 The first string.
* @param str2 The second string.
* @returns True if the strings are equal ignoring case.
*/
export const equalsIgnoreCase = (str1 = '', str2 = '') => str1.toLowerCase() === str2.toLowerCase();
/**
* Checks if a string is empty or contains only whitespace.
* @param {string} value The string to test.