Hi all!
I fulfilled all the cases of this challenge, but my answer looks a little awkward when comparing to the official solution. Is this approach ok?
const palindrome = (str) => {
let regex = /\w+/g;
let newStr = str.replace(/_/g, "").toLowerCase().match(regex).join("");
let inverted = newStr.split("").reverse().join("");
return inverted === newStr;
}