{"ScriptPreparationCode":null,"TestCases":[{"Name":"_.get","Code":"var object = { \u0027a\u0027: [{ \u0027b\u0027: { \u0027c\u0027: 3 } }] };\r\n \r\n_.get(object, \u0027a[0].b.c\u0027);","IsDeferred":false},{"Name":"native","Code":"var object = { \u0027a\u0027: [{ \u0027b\u0027: { \u0027c\u0027: 3 } }] };\r\n \r\n\r\n/*\r\nconst get = (obj, path, defaultValue) =\u003E {\r\n const result = String.prototype.split.call(path, /[,[\\].]\u002B?/)\r\n .filter(Boolean)\r\n .reduce((res, key) =\u003E (res !== null \u0026\u0026 res !== undefined) ? res[key] : res, obj);\r\n return (result === undefined || result === obj) ? defaultValue : result;\r\n}\r\n */\r\n\r\n const get = (obj, item, failure) =\u003E obj.item || failure;\r\n\r\n\r\nget(object, \u0027a[0].b.c\u0027);","IsDeferred":false}]}