Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: browser,string,url,beginner
|
||||
|
||||
Returns the current URL without any parameters.
|
||||
|
||||
Use `String.prototype.indexOf()` to check if the given `url` has parameters, `String.prototype.slice()` to remove them if necessary.
|
||||
- Use `String.prototype.indexOf()` to check if the given `url` has parameters, `String.prototype.slice()` to remove them if necessary.
|
||||
|
||||
```js
|
||||
const getBaseURL = url =>
|
||||
|
||||
Reference in New Issue
Block a user