uniqueArray = (items, selector) => {
	/** @type {Set<I>} */
	const set = new Set();
	for (const item of items) {
		for (const i of selector(item)) {
			set.add(i);
		}
	}
	return Array.from(set);
}
@template T
@template I
@param {Iterable<T>} items items to select from
@param {(item: T) => Iterable<I>} selector selector function to select values from item
@returns {I[]} array of values