function lazy

export declare function lazy<T>(cb: () => T): () => T;

Lazily evaluate a callback, storing its result

Type Parameters

T

Parameters

cb: () => T