Cleanup utility function in connection manager
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user