dan*_*jar 0 javascript arrays syntax operators
给定两个数组,如何将两者的组合传递给函数,最好使用内联语法?
var current = [1.01, 3.01, 2.42, 4.31];
var preview = [0.89, 3.15];
/*
* pass both combined to a function, this is fictional syntax.
* display(current + preview);
*/
Run Code Online (Sandbox Code Playgroud)
我的意思是内联语法来创建一个传递的临时数组.我不希望修改我的一个数组.