{"ScriptPreparationCode":"var props = {\r\n user: {\r\n posts: [\r\n { title: \u0027Foo\u0027, comments: [ \u0027Good one!\u0027, \u0027Interesting...\u0027 ] },\r\n { title: \u0027Bar\u0027, comments: [ \u0027Ok\u0027 ] },\r\n { title: \u0027Baz\u0027, comments: [] },\r\n ]\r\n }\r\n}\r\n\r\nvar get = (o, p) =\u003E\r\n p.reduce((xs, x) =\u003E (xs \u0026\u0026 xs[x]) ? xs[x] : null, o);","TestCases":[{"Name":"lodash","Code":"var comment = _.get(props, \u0027user.posts[0].comments[0]\u0027)\r\nvar noise = comment \u002B \u0027noise\u0027;","IsDeferred":false},{"Name":"reduce get","Code":"var comment = get(props, [\u0027user\u0027, \u0027posts\u0027, 0, \u0027comments\u0027, 0]);\r\nvar noise = comment \u002B \u0027noise\u0027;","IsDeferred":false},{"Name":"native access","Code":"var comment = props.user.posts[0].comments[0];\r\nvar noise = comment \u002B \u0027noise\u0027;","IsDeferred":false}]}