loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
sachindra149 profile image
sachindra@work

function stringPeeler(str) {
return str.length > 2 ? str.substr(1, str.length-2) : 'Invalid String'
}