panzerdp / voca

The ultimate JavaScript string library
https://vocajs.pages.dev
MIT License
3.6k stars 137 forks source link

feat(query): added isPalindrome function #36

Closed Bartosz-D3V closed 6 years ago

Bartosz-D3V commented 6 years ago

Title

Added a new query method that checks whether a passed argument (subject) is a palindrome.

Description

Check List

panzerdp commented 6 years ago

@Bartosz-D3V, Thanks for your time and interest in improving Voca library. As I mentioned in contributing guide, it's better to open an issue first in order to discuss a potential feature before actually implementing it.

At this moment I am not interested in adding isPalindrome() function to the library, since its usage is very limited. Moreover you can achieve the same by using str === v.reverse(str).