MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / normalizeUrl

Function normalizeUrl

lib/utilities/ember-app-utils.js:17–23  ·  view source on GitHub ↗

* Returns a normalized url given a string. * Returns an empty string if `null`, `undefined` or an empty string are passed * in. * * @method normalizeUrl * @param {String} Raw url. * @return {String} Normalized url.

(rootURL)

Source from the content-addressed store, hash-verified

15 * @return {String} Normalized url.
16 */
17function normalizeUrl(rootURL) {
18 if (rootURL === undefined || rootURL === null || rootURL === '') {
19 return '';
20 }
21
22 return cleanBaseURL(rootURL);
23}
24
25/**
26 * Converts Javascript Object to a string.

Callers 3

contentForFunction · 0.85
replacementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…