src/utils.js
function parseHash(hash, keys) {
	try {
		var parsed = compact(JSON.parse(decodeURIComponent(hash.substr(2))));

		return keys
			? pick(parsed, keys)
			: parsed;
	} catch (e) {
		return {};
	}
}
function parseHash(hash, keys) {
	try {
		var parsed = compact(JSON.parse(decodeURIComponent(hash.substr(2))));

		return keys
			? pick(parsed, keys)
			: parsed;
	} catch (e) {
		return {};
	}
}
Parse hash

@param {String} hash
@param {Array} [keys]
@returns {Object}
@private