You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
302 B
10 lines
302 B
export function isEqualCaseInsensitive(value1, value2) {
|
|
if (typeof value1 !== 'string' || typeof value2 !== 'string') {
|
|
return false;
|
|
}
|
|
return value1.toLowerCase() === value2.toLowerCase();
|
|
}
|
|
|
|
export function prependZero(num, maxLength) {
|
|
return num.toString().padStart(maxLength, '0');
|
|
}
|
|
|