In another question posted this was there:
var a = {};
a.products = [...document.querySelectorAll('.product')];
console.log(a.products);
<div class="product"> </div>
Edge will fail with the following error:
function expected
However this is working:
var params = ['hello', '', 7];
var other = [ 1, 2, ...params];
console.log(params);
console.log(other);
Why isn't the top one working on Edge (it does on Chrome)?