constructor (monads) { super() if (!Array.isArray(monads)) { throw TypeError('Expect array of functions on first argument of compose.') } monads.forEach((monad, idx) => { if (typeof monad !== 'function') { throw TypeError(`Expect functions on compose, but got ${typeof monad} on index ${idx}.`) } }) this.monads = monads this.step = null this.focus = null this.cancellations = [] this.defaultPlaybackControls = SequentialFlow.defaultPlaybackControls }
constructor (monads) { super() if (!Array.isArray(monads)) { throw TypeError('Expect array of functions on first argument of compose.') } monads.forEach((monad, idx) => { if (typeof monad !== 'function') { throw TypeError(`Expect functions on compose, but got ${typeof monad} on index ${idx}.`) } }) this.monads = monads this.step = null this.focus = null this.cancellations = [] this.defaultPlaybackControls = SequentialFlow.defaultPlaybackControls }