Back

Spread Operator

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

const first = [1,2,3]; const second = [4,5,6]; const combined = [...first,'a',...second,'b']; console.log(combined);