{"ScriptPreparationCode":"function translateBySpread (a) {\r\n const b = {\r\n ...(a.id ? { id: a.id } : {}),\r\n ...(a.foo ? { foo: a.foo} : {})\r\n }\r\n return b;\r\n}\r\n\r\nfunction translateByLodash (a) {\r\n const b = {\r\n id: a.id || null,\r\n foo: a.foo || null\r\n }\r\n return _.pickBy(b, !_.isNull);\r\n}","TestCases":[{"Name":"spread","Code":"translateBySpread({ id: \u002712345\u0027, type: \u0027article\u0027 });","IsDeferred":false},{"Name":"lodash ","Code":"translateByLodash({ id: \u002712345\u0027, type: \u0027article\u0027 });","IsDeferred":false}]}