We're a place where coders share, stay up-to-date and grow their careers.
Let's just go wild
(someString) => { switch(someString.length){ case 0: case 1: case 2: return null; default: const arr = someString.split("") arr.pop(); arr.reverse(); arr.pop(); arr.reverse(); return arr.join("") } }
Why not?
This is indeed wild
Let's just go wild
Why not?
This is indeed wild