Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paveldymkov/value-accessor
https://github.com/paveldymkov/value-accessor
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paveldymkov/value-accessor
- Owner: PavelDymkov
- License: mit
- Created: 2022-07-31T10:39:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T04:20:37.000Z (over 2 years ago)
- Last Synced: 2024-11-03T01:52:12.849Z (3 months ago)
- Language: TypeScript
- Size: 271 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# value-accessor
![test: passed](https://raw.githubusercontent.com/PavelDymkov/value-accessor/main/badges/test.svg)
![license: MIT](https://raw.githubusercontent.com/PavelDymkov/value-accessor/main/badges/license.svg)## 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
```