MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / tryDecode

Function tryDecode

06.Router/basic/js/vue-router.js:135–141  ·  view source on GitHub ↗
(uri, asComponent)

Source from the content-addressed store, hash-verified

133 }
134
135 function tryDecode(uri, asComponent) {
136 try {
137 return asComponent ? decodeURIComponent(uri) : decodeURI(uri);
138 } catch (e) {
139 warn('malformed URI' + (asComponent ? ' component: ' : ': ') + uri);
140 }
141 }
142
143 function isArray(test) {
144 return Object.prototype.toString.call(test) === "[object Array]";

Callers 2

decodeQueryParamPartFunction · 0.85
vue-router.jsFile · 0.85

Calls 1

warnFunction · 0.70

Tested by

no test coverage detected