Reference

computed

Creates a lazily evaluated reactive value derived from other cells.

Signature

function computed<T>(fn: (): T, options?: ComputedOptions<T> | ComputedEquality<T>): ReadonlyCell<T>