Solución
solution.tsTypeScript
export function isPalindrome(text: string): boolean {
const REGEX = /[\W_]/g;
const textReplaced = text.replace(REGEX, '').toLowerCase();
const palindromeText = textReplaced.split('').reverse().join('');
// Escribe tu solución aquí
return textReplaced === palindromeText;
}0respuestas