UNPKG

sikits

Version:

A powerful and comprehensive utility library for JavaScript and TypeScript with 100+ functions for strings, numbers, arrays, and objects

9 lines (8 loc) 315 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPalindrome = void 0; const isPalindrome = (str) => { const normalized = str.toLowerCase().replace(/[^a-z0-9]/g, ''); return normalized === normalized.split('').reverse().join(''); }; exports.isPalindrome = isPalindrome;