DEV Community

loading...

Discussion on: Daily Challenge #305 - Remove Anchors from URLs

Collapse
jehielmartinez profile image
Jehiel Martinez

JS

removeUrlAnchor = (str) => str.split('#')[0];
Enter fullscreen mode Exit fullscreen mode