mergeToObject = items => {
	const obj = Object.create(null);
	for (const item of items) {
		obj[item.name] = item;
	}
	return obj;
}
@template {{ name: string }} T
@param {T[]} items items to be merged
@returns {NamedObject<T>} an object