Skip to content

get

get<S>(): State<S, S>

Defined in: Core/State.ts:47

Produces the current state as the value, without modifying it.

S

State<S, S>

const readStack: State<string[], string[]> = State.get();
State.run(["a", "b"])(readStack); // [["a", "b"], ["a", "b"]]