Hello
{"ScriptPreparationCode":"var node = document.getElementById(\u0027node\u0027);\r\nvar className = node.className;\r\nvar rx = new RegExp(\u0027\\\\b\u0027 \u002B className \u002B \u0027\\\\b\u0027);\r\nfunction hasClassString(e, c) {\r\n var s = e.className, i = s.indexOf(c);\r\n return i != -1 \u0026\u0026 (s.charCodeAt(i - 1) || 32) == 32 \u0026\u0026 (s.charCodeAt(i \u002B c.length) || 32) == 32;\r\n};","TestCases":[{"Name":"$.hasClass","Code":"var hasClass = $(node).hasClass(className);","IsDeferred":false},{"Name":"RegExp","Code":"var hasClass = rx.test(node.className);","IsDeferred":false},{"Name":"Dry RegExp","Code":"var drx = new RegExp(\u0027\\\\b\u0027 \u002B className \u002B \u0027\\\\b\u0027);\r\nvar hasClass = drx.test(node.className);","IsDeferred":false},{"Name":"indexOf","Code":"var hasClass = (\u0022 \u0022 \u002B node.className \u002B \u0022 \u0022).indexOf(\u0022 \u0022 \u002B className \u002B \u0022 \u0022) !== -1;\r\n","IsDeferred":false},{"Name":"classList","Code":"var hasClass = node.classList.contains(className);\r\n","IsDeferred":false},{"Name":"hasClassString","Code":"var hasClass = hasClassString(node, className);","IsDeferred":false}]}