"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function toQueryObject(queryString) {
    var item;
    var parts = queryString.substring(1).split('&');
    var result = {};
    for (var i in parts) {
        if (parts[i] === '') {
            continue;
        }
        item = parts[i].split('=');
        result[decodeURIComponent(item[0])] = decodeURIComponent(item[1]);
    }
    return result;
}
exports.toQueryObject = toQueryObject;
//# sourceMappingURL=util.js.map