s-stream
Basic use
As a getter/setter
var s = ;; // 5;; // 3
Can be observed via .map
var s = ; s; ;;
Map is called immediately if initialized with any value
var s = ;s;
Including undefined
Promises
Streams wait for promise to resolve
var p = { ;}; var s = ; s;
With error handling
var p = { ;}; var s = ; s; s;
Preventing memory leaks
Listeners can be removed with .off
var s = ;var {};s;s;
Other information
stream.toString
returns a string of form stream(contentType)
var s = ;s; // `stream(Number)`