https://github.com/paveldymkov/value-accessor
https://github.com/paveldymkov/value-accessor
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paveldymkov/value-accessor
- Owner: PavelDymkov
- License: mit
- Created: 2022-07-31T10:39:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T04:20:37.000Z (almost 3 years ago)
- Last Synced: 2025-03-19T13:11:20.665Z (4 months ago)
- Language: TypeScript
- Size: 271 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# value-accessor

## Table of Contents
- [Usage](#usage)
* [A Value accessor](#a-value-accessor)## Usage
### A Value accessor
```ts
import { ValueAccessor } from "value-accessor";const store = new ValueAccessor();
if (store.hasValue) console.log(store.value);
// nothingstore.value = 42;
if (store.hasValue) console.log(store.value);
// log: 42
```