{"ScriptPreparationCode":"var a = \u0022John Doe Is NOT A Really Long Name\u0022\r\nvar b = \u0022JOHN DOE IS not A REALLY LONG NAME\u0022\r\n\r\n\r\nfunction isEqualToIgnoreCase1(stringA, stringB) {\r\n if (stringA \u0026\u0026 stringB) {\r\n return stringA.toLowerCase() === stringB.toLowerCase()\r\n }\r\n\r\n return stringA === stringB;\r\n}\r\n\r\nvar options = {\r\n sensitivity: \u0027accent\u0027\r\n};\r\n\r\nfunction isEqualToIgnoreCase2(stringA, stringB) {\r\n return stringA.localeCompare(stringB, undefined, options) === 0;\r\n}\r\n\r\nvar collatorBase = Intl.Collator(undefined, { sensitivity: \u0027base\u0027 });\r\n\r\nfunction isEqualToIgnoreCase3(stringA, stringB) {\r\n return collatorBase.compare(stringA,stringB) === 0;\r\n}\r\n\r\nvar collatorAccent = Intl.Collator(undefined, { sensitivity: \u0027accent\u0027 });\r\n\r\nfunction isEqualToIgnoreCase4(stringA, stringB) {\r\n return collatorAccent.compare(stringA,stringB) === 0;\r\n}\r\n","TestCases":[{"Name":"toLowerCase","Code":"isEqualToIgnoreCase1(a,b)","IsDeferred":false},{"Name":"Locale","Code":"isEqualToIgnoreCase2(a,b)","IsDeferred":false},{"Name":"Collator","Code":"isEqualToIgnoreCase3(a,b)","IsDeferred":false},{"Name":"Collator Accent","Code":"isEqualToIgnoreCase4(a,b)","IsDeferred":false}]}