function unmaskValue(value, mask, placeholderChar) {
  if (!mask || !value || value.length > mask.length) {
    return value;
  }

  let unmaskedValue = value.split('');

  for (let i = 0; i < mask.length; i++) {
    const char = value[i] || '';
    const charPart = mask[i];

    if (!_.isRegExp(charPart) && char === charPart) {
      unmaskedValue[i] = '';
    }
  }

  unmaskedValue = unmaskedValue.join('').replace(placeholderChar, '');

  return unmaskedValue;
}
Unmasks a value using the provided mask and placeholder characters.
@param {string} value - The value to unmask.
@param {string} mask - The mask to use for unmasking.
@param {string} placeholderChar - The placeholder character to use for unmasking.
@returns {string} - The unmasked value.