Seitu - Type-Safe Utilities
Core

Computed

createComputed()

Creates a computed (derived) subscription from a subscription or an array of subscriptions. The computed value is updated whenever any subscription updates.

Examples

import { ,  } from 'seitu'

const  = ({ : 1, : 2 })
const  = (,  => . + .)
.() // 3
import { ,  } from 'seitu'

const  = (1)
const  = (2)
const  = ([, ], ([, ]) =>  + )
.() // 3

On this page