dist/lib/utility_functions/string.js
function splitToObj(str, delim) {
    if (!(_.isString(str))) {
        throw new Error(`Input must be a string: ${str}`);
    }
    else {
        return util_1.convertToObject(str.split(delim), () => true);
    }
}
function splitToObj(str, delim) {
    if (!(_.isString(str))) {
        throw new Error(`Input must be a string: ${str}`);
    }
    else {
        return util_1.convertToObject(str.split(delim), () => true);
    }
}
function splitToObj ( str , delim ) { if ( ! ( _ . isString ( str ) ) ) { throw new Error ( ` ${ str } ` ) ; } else { return util_1 . convertToObject ( str . split ( delim ) , ( ) => true ) ; } }
Splits a string at delim and returns an object with the
split string parts as keys and the values set to true.

@param str
@param delim
Splits a string at delim and returns an object with the split string parts as keys and the values set to true .