{"ScriptPreparationCode":"var numOfStrings = 100000\r\nvar prefix = \u0027\u002B\u0027\r\nvar testStrings = []\r\n\r\nfunction phones() {\r\n return Math.random() * (19999999999 - 10000000000) \u002B 10000000000;\r\n}\r\n\r\nfor (let i = 0; i \u003C numOfStrings; i\u002B\u002B) {\r\n testStrings.push(prefix \u002B phones())\r\n}","TestCases":[{"Name":"Replace","Code":"testStrings.map(str =\u003E {\r\n return str.replace(/\\D/g, \u0027\u0027);\r\n})","IsDeferred":false},{"Name":"Substring","Code":"testStrings.map(str =\u003E {\r\n return str.substring(1, str.length)\r\n})","IsDeferred":false},{"Name":"Substring hardcoded","Code":"testStrings.map(str =\u003E {\r\n return str.substring(1, 12)\r\n})","IsDeferred":false},{"Name":"Slice","Code":"testStrings.map(str =\u003E {\r\n return str.slice(0, str.length)\r\n})","IsDeferred":false},{"Name":"Slice hardcoded","Code":"testStrings.map(str =\u003E {\r\n return str.slice(0, 12)\r\n})","IsDeferred":false}]}