{"ScriptPreparationCode":"var string = \u0022[12].Hello.world[2]\u0022;\r\nvar regex = /Hello/;","TestCases":[{"Name":"RegEx.test","Code":"function getNestedProperty(key = \u0022\u0022, object = {}) {\r\n return key\r\n .replace(/[\\[\\]\\.]\u002B/g, \u0027 \u0027)\r\n .trim()\r\n .split(\u0027 \u0027)\r\n ?.reduce((acc, v) =\u003E acc?.[v], object);\r\n}\r\ngetNestedProperty(string, {a: {b: 2}})","IsDeferred":false},{"Name":"String.includes","Code":"function getNestedProperty(key = \u0022\u0022, object = {}) {\r\n return key\r\n .match(/[\u3131-\uD7A3a-zA-Z0-9]\u002B/g)\r\n ?.reduce((acc, v) =\u003E acc?.[v], object);\r\n}\r\ngetNestedProperty(string, {a: {b: 2}})","IsDeferred":false},{"Name":"dshsdh352","Code":"function getKey(key) {\r\n let reuslt = \u0027\u0027;\r\n for (let i = 0; i \u003C key.length; i\u002B\u002B) {\r\n const k = key[i];\r\n \r\n if (k === \u0027[\u0027 || k === \u0027]\u0027 || k === \u0027.\u0027) {\r\n reuslt \u002B= \u0027 \u0027;\r\n } else {\r\n reuslt \u002B= k;\r\n }\r\n }\r\n\r\n return reuslt.split(\u0027 \u0027).filter(x =\u003E x);\r\n}\r\ngetKey(string)","IsDeferred":false}]}