Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 238 Bytes

File metadata and controls

13 lines (8 loc) · 238 Bytes

isPalindrome()

Overview

Checks if a string is a palindrome.

Code

A screenshot of the titular code snippet

const isPalindrome = (str) => str === str.split("").reverse().join("");