Newer
Older
alert / js / node_modules / source-map-resolve / lib / resolve-url.js
@Réz István Réz István on 18 Nov 2021 219 bytes first commit
var url = require("url")

function resolveUrl(/* ...urls */) {
  return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) {
    return url.resolve(resolved, nextUrl)
  })
}

module.exports = resolveUrl