判断题
Math.max(...[14,3,77])等同于Math.max(14,3,77);。
正确
判断题 扩展运算符后面是一个空数组,则报错。
判断题 const arr=[...(x>0?[’a’]:[]),’b’,];使用错误,因为扩展运算符不能放在表达式中使用。
判断题 扩展运算符不能与正常的函数参数结合使用,如下使用是错误的:function f(v, w, x, y, z) { };const args = [0, 1];f(-1, ...args, 2, ...[3]);。