Skip to main content

Variable: empty()

const empty: <Value>() => Iterable<Value>

Defined in: core.d.ts:364

An iterable that contains zero values.

Can be used as an iterable of any type.

Like [], but opaque.

Type Parameters

Value

Value = unknown

Returns

Iterable<Value>

Example

import { empty } from 'lfi'

console.log([...empty()])
//=> []
Playground

Since

v0.0.1