Why isn't MS Edge working with spread element and querySelector?
You could use Array.from
, which generates an array from an array like object.
this.products = Array.from(document.querySelectorAll('.product'));
You could use Array.from
, which generates an array from an array like object.
this.products = Array.from(document.querySelectorAll('.product'));