function get(store) {
	let value;
	subscribe_to_store(store, (_) => (value = _))();
	// @ts-expect-error
	return value;
}
Get the current value from a store by subscribing and immediately unsubscribing.

@template T
@param {Readable<T>} store
@returns {T}