I wanted to know if these two syntaxes are equivalent:
x = [1, 2, 3]
y = [4, 5, 6]
a = [...x, ...y]
b = [].concat(x, y)
I couldn't find any way in which one is better than the other one.
I wanted to know if these two syntaxes are equivalent:
x = [1, 2, 3]
y = [4, 5, 6]
a = [...x, ...y]
b = [].concat(x, y)
I couldn't find any way in which one is better than the other one.