var createHref = function createHref(hashType) { return function (path) { var newPath = void 0; switch (hashType) { case 'hashbang': newPath = path.charAt(0) === '!' ? path : '!/' + (0, _PathUtils.stripLeadingSlash)(path); break; case 'noslash': newPath = (0, _PathUtils.stripLeadingSlash)(path); break; case 'slash': default: newPath = (0, _PathUtils.addLeadingSlash)(path); break; } return '#' + newPath; }; }
var createHref = function createHref(hashType) { return function (path) { var newPath = void 0; switch (hashType) { case 'hashbang': newPath = path.charAt(0) === '!' ? path : '!/' + (0, _PathUtils.stripLeadingSlash)(path); break; case 'noslash': newPath = (0, _PathUtils.stripLeadingSlash)(path); break; case 'slash': default: newPath = (0, _PathUtils.addLeadingSlash)(path); break; } return '#' + newPath; }; }