pick(object, propertiesToPick) {
    /** @type {Partial<T>} */
    const out = {};
    for (const [key_, value] of Object.entries(object)) {
      const key = /** @type {keyof T} */ (key_);
      if (!propertiesToPick.includes(key)) continue;
      out[key] = value;
    }

    return out;
  }
@template {Object} T
@param {T} object
@param {Array<keyof T>} propertiesToPick
@return {Partial<T>}