pasture, 4 months ago Need a wrapper around the left-pad API, this is way too complicated for a lowly developer like me async function leftPad(str, len){ try { return (await (await fetch("https://left-pad.com/?str=" + encodeURIComponent(str) + "&len=" + len)).json()).result; } catch(e) throw e; } That'll be $6 gorillion per year please
Need a wrapper around the left-pad API, this is way too complicated for a lowly developer like me
async function leftPad(str, len){ try { return (await (await fetch("https://left-pad.com/?str=" + encodeURIComponent(str) + "&len=" + len)).json()).result; } catch(e) throw e; }
That'll be $6 gorillion per year please