/flowto

Enhanced Generator Functions

Primary LanguageJavaScriptMIT LicenseMIT

flowto

flowto

Enhanced generator functions

version install size

Overview

  • Conforms to Iterable and Iterator protocols (just like generators)
  • Supports back() and forward() (similar to browser navigation)
  • Serializable state (respawn at same position)
    • save((state) => { }) callback is invoked every time the state changes
    • load(state) will return the iterator with equivalent state
  • Composable (sub-iterator states are maintained)