{"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":"const array","Code":"String.prototype.replaceAt = function(index, char) {\r\n const 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":"...array","Code":"String.prototype.replaceAt = function(index, char) {\r\n var a = [...this];\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":"const ...array","Code":"String.prototype.replaceAt = function(index, char) {\r\n const a = [...this];\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":"assign","Code":"String.prototype.replaceAt = function(index, char)\r\n{\r\n return Object.assign([...this], {[index]: char}).join(\u0060\u0060);\r\n};\r\n\r\n\u0027abcde\u0027.replaceAt(2,\u0027a\u0027)","IsDeferred":false}]}