(uri, asComponent)
| 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]"; |
no test coverage detected