a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / isPalindrome
isPalindrome(
input
):boolean
Checks if a string is a palindrome, ignoring case and non-alphanumeric characters.
• input: string
The input string to be checked.
boolean
true
if the input string is a palindrome, false
otherwise.
const result = isPalindrome("A man, a plan, a canal, Panama");
console.log(result); // true