function exclude_from_object(obj, keys) {
	/** @type {Record<string, unknown>} */
	var result = {};

	for (var key in obj) {
		if (!keys.includes(key)) {
			result[key] = obj[key];
		}
	}

	return result;
}
@param {Record<string, unknown>} obj
@param {string[]} keys
@returns {Record<string, unknown>}