function fallback(value, fallback, lazy = false) {
	return value === undefined
		? lazy
			? /** @type {() => V} */ (fallback)()
			: /** @type {V} */ (fallback)
		: value;
}
@template V
@param {V} value
@param {V | (() => V)} fallback
@param {boolean} [lazy]
@returns {V}