MCPcopy Index your code
hub / github.com/ThatGuySam/doesitarm / normalizeUrl

Function normalizeUrl

helpers/http.js:5–11  ·  view source on GitHub ↗
( url )

Source from the content-addressed store, hash-verified

3}
4
5function normalizeUrl ( url ) {
6 if ( url instanceof URL ) {
7 return url.toString()
8 }
9
10 return String( url )
11}
12
13function toRequestConfig ( input, options = {} ) {
14 if ( typeof input === 'string' || input instanceof URL ) {

Callers 1

toRequestConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected