Skip to content

just

just<T>(x): T

Creates a Just from the given value.

Example

just("foobar")
// => "foobar"

Type Parameters

T extends unknown

The Just type.

Parameters

x

T

The either object to unpack.

Returns

T

The just value.