Skip to content

Commit

Permalink
doc: remove superfluous URL require statement
Browse files Browse the repository at this point in the history
Since v10.0.0, the `URL` class is available on the global object, so
using a `require` statement to access it is no longer necessary.
  • Loading branch information
MarkTiedemann committed Apr 27, 2018
1 parent a1fc528 commit 707b5c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ and a `base` is provided, it is advised to validate that the `origin` of
the `URL` object is what is expected.

```js
const { URL } = require('url');

let myURL = new URL('http://anotherExample.org/', 'https://example.org/');
// http://anotherexample.org/

Expand Down

0 comments on commit 707b5c9

Please sign in to comment.