apiref
@spacet.me/chain@2.0.2

Chain  Class

A Chain object, created through the chain() function.

Signature

export declare class Chain<T> 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Chain class.

Methods

MethodDescription
thru(interceptor)Apply a function to the value of the chain.
toJSON()Returns the value of the chain, for seamless usage with JSON.stringify().
value()Returns the value of the chain.
valueOf()Returns the value of the chain, for seamless usage comparison operators.