Message from JavaScript discussions

April 2019

— Slice takes the first three elements out of an array

— 

In any case what about this.play(first, second, third)

How do you propose to control what goes into this function if there is no if statements?

— Essentially ensuring size is 3 or less

— ... spreads the list out into possibly multiple arguments

— Spread won't work that is for sure

— It does work

— Not in this case

— Try it

— 

const list = [ 1, 2, 3 ];
fn(...list) // same as:
fn(1, 2, 3)

— 

const list = [ 1, 2 ];
fn(...list) // same as:
fn(1, 2)

— Game.play() takes arguements passed by Game.manage() as a spreas

— Yes