We're a place where coders share, stay up-to-date and grow their careers.
const peelString = (s: string): string => { return s.length > 2 ? s.slice(1, -1) : null; }
Discussion on: Daily Challenge #1 - String Peeler