{"ScriptPreparationCode":null,"TestCases":[{"Name":"lastIndexOf","Code":"var str = \u0022According to that, indexOf is just a little bit faster. Of course, it does depend on what you are indexing.IndexOf looks for the first occurrence and lastIndexOf returns to the last occurrence. That all said, their are much better functions around now like map.To be honest though, if Google is using it there is probably a good reason.\u0022;\r\nvar n = str.lastIndexOf(\u0022havent string\u0022, 0);","IsDeferred":false},{"Name":"indexOf","Code":"var str = \u0022According to that, indexOf is just a little bit faster. Of course, it does depend on what you are indexing.IndexOf looks for the first occurrence and lastIndexOf returns to the last occurrence. That all said, their are much better functions around now like map.To be honest though, if Google is using it there is probably a good reason.\u0022;\r\nvar n = str.indexOf(\u0022havent string\u0022, 0);","IsDeferred":false}]}