{"ScriptPreparationCode":null,"TestCases":[{"Name":"Lodash","Code":"const obj = {\r\n a:1,\r\n b:1,\r\n c:1,\r\n d:1,\r\n e:1,\r\n f:1,\r\n g:1,\r\n h:1,\r\n i:1,\r\n}\r\n\r\nconst n = _.pick(obj, [\u0027a\u0027,\u0027d\u0027,\u0027i\u0027]);","IsDeferred":false},{"Name":"for fields","Code":"const obj = {\r\n a:1,\r\n b:1,\r\n c:1,\r\n d:1,\r\n e:1,\r\n f:1,\r\n g:1,\r\n h:1,\r\n i:1,\r\n}\r\n\r\nconst fields = [ \u0027a\u0027, \u0027d\u0027, \u0027i\u0027 ];\r\n// const {a, d, i} = obj;\r\nlet n = {};\r\nfor (let field of fields) {\r\n n[field] = obj[field];\r\n}","IsDeferred":false}]}