Regex vs Split [JavaScript]

Thursday, October 3, 2019

I recently had a problem where I wanted to extract the sub-domain from a URL. I wanted to check how long it would take using both approaches

Top