{"ScriptPreparationCode":"var pick1 = (originalObj = {}, keysToPick = []) =\u003E\r\n Object.fromEntries(\r\n Object.entries(originalObj)\r\n .filter(([key]) =\u003E keysToPick.includes(key))\r\n )\r\n\r\nvar pick2 = new Function(\u0027obj\u0027, \u0027return { a: obj.a, d: obj.d, i: obj.i };\u0027);","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":"Object desctruct","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\n\r\nconst n = pick1(obj, [\u0027a\u0027,\u0027d\u0027,\u0027i\u0027]);","IsDeferred":false},{"Name":"compiled function","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 = pick2(obj)","IsDeferred":false}]}