ObservableValue: getValue()
監視対象の現在の値を取得します。
構文
observableValue.getValue() => string | number | boolean | bigint
返値: string | number | boolean | bigint
現在の値を返します。
例
const ov = new ObservableValue("Alice");
console.log(ov.getValue());
// => "Alice"
ov.setValue("Bob");
console.log(ov.getValue());
// => "Bob"