{"ScriptPreparationCode":null,"TestCases":[{"Name":"array","Code":"String.prototype.replaceAt=function(index, char) {\r\n var a = this.split(\u0022\u0022);\r\n a[index] = char;\r\n return a.join(\u0022\u0022);\r\n};\r\n\u0027abcde\u0027.replaceAt(2,\u0027a\u0027)","IsDeferred":false},{"Name":"mine","Code":"const emptyArray = (index, item) =\u003E\r\n{\r\n\tvar temp = new Array(index);\r\n\r\n\ttemp[index] = item;\r\n\r\n\treturn temp;\r\n};\r\n\r\nString.prototype.replaceAt = function(index, char)\r\n{\r\n return Object.assign([...this], emptyArray(index, char)).join(\u0060\u0060);\r\n};\r\n\r\n\u0027abcde\u0027.replaceAt(2,\u0027a\u0027)","IsDeferred":false}]}