{"ScriptPreparationCode":"var object = { \u0027a\u0027: [{ \u0027b\u0027: { \u0027c\u0027: 3 } }, 4] };\r\nvar paths = [\u0027a[0].b.c\u0027, \u0027a[1]\u0027]","TestCases":[{"Name":"Lodash","Code":"var atValues = (object, paths) =\u003E _(object).at(paths).value();\r\natValues(object, paths)","IsDeferred":false},{"Name":"Native","Code":"const atValues = (object, paths) =\u003E\r\n paths.map((path) =\u003E {\r\n const pathArr = path\r\n .toString()\r\n .split(/#?\\[|\\]|\\./)\r\n .filter((p) =\u003E p !== \u0027\u0027)\r\n\r\n let copyObj = { ...object }\r\n for (const p of pathArr) {\r\n if (Object.prototype.hasOwnProperty.call(copyObj, p)) {\r\n copyObj = copyObj[p]\r\n }\r\n }\r\n\r\n return copyObj\r\n })\r\natValues(object, paths)","IsDeferred":false}]}