Spread operator "..." works for arrays, but not objects.
Solved
QML and Qt Quick
-
-
Hi @Tannz0rz,
QJSEngine
supports ECMAScript 7 (2016): https://doc.qt.io/qt-5/qtqml-javascript-hostenvironment.htmlThe spread syntax was added to objects in ECMAScript 9 (2018) and is also considered "experimental": https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax