Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paveldymkov/value-accessor


https://github.com/paveldymkov/value-accessor

Last synced: about 2 months ago
JSON representation

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);
// nothing

store.value = 42;

if (store.hasValue) console.log(store.value);
// log: 42
```