{"ScriptPreparationCode":"const tests = [\r\n\t\u0027Alasdkfjdsfndv dfjwsdfsmd \u002B\\\r\n\t\ts@sdfsdvdsv dwoaslkvkl \u002B\\\r\n\t\tskcslmvklfnkl klaml fm \u002B\\\r\n\t\twemvfz;lpakpokqmdsfdkm \u002B\\\r\n\t\tkreklmswlms lmfklsmskl \u002B\\\r\n\t\tl;fl; s,dl;fmsklnkfsd; \u002B\\\r\n\t\tsahfwijrn 1\u0027,\r\n\t\u00273Jognsahasdojjjdishuihjnj \u002B\\\r\n\t \tsdfskdfkshfskmfsdjnf\u0027,\r\n\t\u0027Asnasbdbasdahsfsdjfsdfbds \u002B\\\r\n\t\teiejdksjhsjj7\u0027\r\n]\r\n\r\nfunction strContainsNumsv1(str) {\r\n\treturn str.split(\u0027\u0027).findIndex(e =\u003E [0,1,2,3,4,5,6,7,8,9].includes(\u002Be)) != -1;\r\n}\r\n\r\nfunction strContainsNumsv2(str) {\r\n\treturn /\\d/.test(str);\r\n}\r\n\r\nfunction strContainsNumsv3(str) {\r\n\treturn /^(?=.*[0-9]).*$/.test(str);\r\n}\r\n\r\nfunction runTestv1() {\r\n\ttests.forEach(e =\u003E strContainsNumsv1(e))\r\n}\r\n\r\nfunction runTestv2() {\r\n\ttests.forEach(e =\u003E strContainsNumsv2(e))\r\n}\r\n\r\nfunction runTestv3() {\r\n\ttests.forEach(e =\u003E strContainsNumsv3(e))\r\n}","TestCases":[{"Name":"Find a number within a string via string and array methods","Code":"runTestv1()","IsDeferred":false},{"Name":"Find a number within a string via literal regexp","Code":"runTestv2()","IsDeferred":false},{"Name":"Find a number within a string via strong literal regexp","Code":"runTestv3()","IsDeferred":false}]}