source:
trip-planner-front/node_modules/source-map-resolve/lib/resolve-url.js@
b738035
Last change on this file since b738035 was e29cc2e, checked in by , 3 years ago | |
---|---|
|
|
File size: 219 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | var url = require("url") |
2 | ||
3 | function resolveUrl(/* ...urls */) { | |
4 | return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) { | |
5 | return url.resolve(resolved, nextUrl) | |
6 | }) | |
7 | } | |
8 | ||
9 | module.exports = resolveUrl |
Note:
See TracBrowser
for help on using the repository browser.