UNPKG

@metacall/faas

Version:

Reimplementation of MetaCall FaaS platform written in TypeScript.

11 lines (8 loc) 234 B
#!/usr/bin/env node function isPalindrome(str) { const cleanedStr = String(str) .replace(/[^a-zA-Z0-9]/g, '') .toLowerCase(); return cleanedStr === cleanedStr.split('').reverse().join(''); } module.exports = { isPalindrome };