* 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)
| 15 | * @return {String} Normalized url. |
| 16 | */ |
| 17 | function 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…