callbag-lazy
Callbag source for lazy evaluation at subscription time. Weighs 98 bytes (minified & gzipped).
npm install callbag-lazy
Example
window inner width
const lazy = ;const subscribe = const src = ; const observer = { console; } { console; }; ;// logs the window width at subscription time then logs 'Done()'
This source is equivalent to the sources below:
const create = ;const fromIter map pipe = ; const src1 = ; const src2 = ;