Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Lua
/learn ES6: Use the Spread Operator to Evaluate Arrays In-Place
lejonet
Programming language:
Lua
2021-01-31 23:35:26
0
Q:
/learn ES6: Use the Spread Operator to Evaluate Arrays In-Place
Brendan Qi
Code:
Lua
2021-01-31 23:38:31
const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY']; let arr2; arr2 = [...arr1];
0
Tags
use
array
read
New to Communities?
Join the community