get Method
Returns the current value of the state. This method is useful for accessing the state at any point in time, allowing other group items or consumers to retrieve the latest value
@returns T
API
get(): T;Example
import {state} from '@bitfiber/rx';
const data = state<number>(10);
// Returns the current value
const value1 = data.get(); // Output: 10
// Returns the current value
const value2 = data(); // Output: 10Last updated on