{"ScriptPreparationCode":null,"TestCases":[{"Name":"Array.prototype.concat","Code":"const response = [ { \u0027hundo\u0027: 100 }, { \u0027nine\u0027: 9 }, {\u0027nested\u0027: { \u0027twos\u0027: 22 }} ];\r\nconst state = [ { \u0027ten\u0027: 10 }, { \u0027six\u0027: 6 }, {\u0027nested\u0027: { \u0027five\u0027: 5 }} ].concat(response);","IsDeferred":false},{"Name":"spread operator (spread at head)","Code":"const response = [ { \u0027hundo\u0027: 100 }, { \u0027nine\u0027: 9 }, {\u0027nested\u0027: { \u0027twos\u0027: 22 }} ];\r\nconst state = [ ...response, { \u0027ten\u0027: 10 }, { \u0027six\u0027: 6 }, {\u0027nested\u0027: { \u0027five\u0027: 5 }} ];","IsDeferred":false},{"Name":"spread operator x2 (head and tail)","Code":"const prevState = [ { \u0027ten\u0027: 10 }, { \u0027six\u0027: 6 }, {\u0027nested\u0027: { \u0027five\u0027: 5 }} ];\r\nconst newItems = [ { \u0027hundo\u0027: 100 }, { \u0027nine\u0027: 9 }, {\u0027nested\u0027: { \u0027twos\u0027: 22 }} ];\r\nconst state = [ ...prevState, ...newItems ];","IsDeferred":false}]}