// "enterprise" solutionfunctionpeelString(str=''){//validateif(typeof(str)!='string')thrownewError(`${str}, ${typeof(str)} is not a string`);if(str.length<=2)thrownewError(`${str} does not have atleast 3 letters`);// processreturnstr.substring(1,str.length-1);}
My "enterprise" solution
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My "enterprise" solution