Message from JavaScript discussions

April 2019

— In fact...

— 

manage(actions, duration) {
this.pause();
this.play(
...actions.length === 0
? [
() =>
console.error('no function was called')
]
: actions.slice(0, 3));
setTimeout(
() => this.resume(),
duration);
}

— This might be a bit abstract tho

— ??

— No, I understand it

— Still does the exact same thing

— I actually thought you were going to include that

— ?

— The code?

— () ?true :false syntax

— Yea

— Which gets interpreted as:
...(x ? y : z)