shift73k/assets_old/node_modules/source-map-resolve/lib/resolve-url.js

9 lines
219 B
JavaScript

var url = require("url")
function resolveUrl(/* ...urls */) {
return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) {
return url.resolve(resolved, nextUrl)
})
}
module.exports = resolveUrl