If `_.result` accepted a default value you could do:
```js
return _.result(this.location.href.replace(/#.*$/, '').match(/\?.+$/), 0, '');
```