{"ScriptPreparationCode":"var params = { a: 1, b: 2 };","TestCases":[{"Name":"spread true","Code":"const x = true\r\n\r\nvar result = [\r\n ...(x ? [{a: 3, b: 4}] : []),\r\n {\r\n a: params.a,\r\n b: params.b\r\n }\r\n]","IsDeferred":false},{"Name":"ramda filter true","Code":"const x = true\r\n\r\nvar result = [\r\n x ? {a: 3, b: 4} : null,\r\n {\r\n a: params.a,\r\n b: params.b\r\n }\r\n]\r\n\r\nresult.filter(R.identity)","IsDeferred":false},{"Name":"spread false ","Code":"const x = false\r\n\r\nvar result = [\r\n ...(x ? [{a: 3, b: 4}] : []),\r\n {\r\n a: params.a,\r\n b: params.b\r\n }\r\n]","IsDeferred":false},{"Name":"ramda filter false","Code":"const x = false\r\n\r\nvar result = [\r\n x ? {a: 3, b: 4} : null,\r\n {\r\n a: params.a,\r\n b: params.b\r\n }\r\n]\r\n\r\nresult.filter(R.identity)","IsDeferred":false}]}