docs: function toObject(input, obj) {
      if (isString(input)) {
          input = obj(input);
      }
      if (typeof input !== 'object') {
          throw new TypeError('Input must be an object or string.');
      }
      return input;
  }