code: 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);
      }
  }
docs: 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