Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/liplum/lateinit


https://github.com/liplum/lateinit

Last synced: about 4 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Lateinit

## Installation

```sh
yarn add @liplum/lateinit
# or
npm i @liplum/lateinit
# or
pnpm i @liplum/lateinit
```

## Usage

### Basic usage

```js
import lateinit from "@liplum/lateinit"
let counter = 0
const a = lateinit(() => ++counter)
console.log()
t.assert(a() === 1)
t.assert(a() === 1)
```