DEV Community

Discussion on: Daily Challenge #1 - String Peeler

Collapse
 
davejs profile image
David Leger
const peelString = (s: string): string => {
  return s.length > 2 ? s.slice(1, -1) : null;
}