How is this solution for the palindrome checker

Hello campers.
I didn’t started regular expression section still but I finded the pattern from the internet.
When I completed the EcmaScript section I took a look at the projects and I saw the palindrome checker. I had an idea with the ( … ) rest operator and I applied this in this project.
So how is this solution.

function palindrome(str) {  
    let replacedStr = str.toLowerCase().replace(/[^a-z0-9]/gi,'');     
    return replacedStr == ( [...replacedStr] .reverse().join("") );  
}

Well, it is simpler than the one I had done. I like this solution because it uses different JavaScript features, Rest and Regex. As opposed to comparing them with an if statement.