{"ScriptPreparationCode":null,"TestCases":[{"Name":"fp.assign","Code":"const state = {\r\n\ta: \u00271\u0027,\r\n \tb: \u00272\u0027,\r\n \tc: {\r\n \tca: 1\r\n }\r\n};\r\n\r\nconst report = {\r\n c: {\r\n \tcb: 2,\r\n },\r\n d: \u00274\u0027,\r\n}\r\n\r\nconst newState = _.assign(state, report);","IsDeferred":false},{"Name":"fp.set","Code":"const state = {\r\n\ta: \u00271\u0027,\r\n \tb: \u00272\u0027,\r\n \tc: {\r\n \tca: 1\r\n }\r\n};\r\n\r\nconst report = {\r\n c: {\r\n \tcb: 2,\r\n },\r\n d: \u00274\u0027,\r\n}\r\n\r\nconst newState = _.flow(\r\n _.set(\u0027c\u0027, report.c),\r\n _.set(\u0027d\u0027, report.d),\r\n)(state);","IsDeferred":false},{"Name":"spread","Code":"const state = {\r\n\ta: \u00271\u0027,\r\n \tb: \u00272\u0027,\r\n \tc: {\r\n \tca: 1\r\n }\r\n};\r\n\r\nconst report = {\r\n c: {\r\n \tcb: 2,\r\n },\r\n d: \u00274\u0027,\r\n}\r\n\r\nconst newState = { ...state, ...report };","IsDeferred":false},{"Name":"mutable","Code":"const state = {\r\n\ta: \u00271\u0027,\r\n \tb: \u00272\u0027,\r\n \tc: {\r\n \tca: 1\r\n }\r\n};\r\n\r\nconst report = {\r\n c: {\r\n \tcb: 2,\r\n },\r\n d: \u00274\u0027,\r\n}\r\n\r\nstate.c.cb = 2;\r\nstate.d = \u00274\u0027;\r\n","IsDeferred":false}]}