Get the last segment of a path or URL in JavaScript

Get the last segment of a path or URL in JavaScript

More to explore