fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Shared / isPalindrome

Function: isPalindrome()

isPalindrome(input): boolean

Checks if a string is a palindrome, ignoring case and non-alphanumeric characters.

Parameters

input: string

The input string to be checked.

Returns

boolean

true if the input string is a palindrome, false otherwise.

Example

const result = isPalindrome("A man, a plan, a canal, Panama");
console.log(result); // true

Defined in

shared/utils/FString.ts:90