Remove live code & console.log, leave examples as comments.

This commit is contained in:
Eric Lavault
2021-10-11 14:07:10 +02:00
parent 90356f340d
commit e18718b7d5
14 changed files with 64 additions and 59 deletions

View File

@ -6,7 +6,7 @@
*
**/
const palindromeRearranging = (str) => {
export const palindromeRearranging = (str) => {
// check that input is a string
if (typeof str !== 'string') {
return 'Not a string'
@ -27,5 +27,9 @@ const palindromeRearranging = (str) => {
}
// testing
console.log(palindromeRearranging('aaeccrr')) // true
console.log(palindromeRearranging('leve')) // false
// > palindromeRearranging('aaeccrr')
// true
// > palindromeRearranging('leve')
// false