DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
kvharish profile image
K.V.Harish

My solution in js


const stringPeeler = (str) => str.length > 2 ? str.substr(1, str.length - 2) : `Invalid input to stringPeeler function ${str}`;

Forem Open with the Forem app