{"ScriptPreparationCode":null,"TestCases":[{"Name":"with getAttribute","Code":"let list = [];\r\nnodes.forEach((node) =\u003E {\r\n\tif(node \u0026\u0026 node.hasAttribute \u0026\u0026 node.hasAttribute(\u0022class\u0022) \u0026\u0026 node.getAttribute(\u0022class\u0022)) {\r\n \tlist.push(node);\r\n }\r\n})\r\nconsole.log(list)","IsDeferred":false},{"Name":"without getAttribute","Code":"let list = [];\r\nnodes.forEach((node) =\u003E {\r\n\tif(node \u0026\u0026 node.hasAttribute \u0026\u0026 node.hasAttribute(\u0022class\u0022)) {\r\n \tlist.push(node);\r\n }\r\n})\r\nconsole.log(list)","IsDeferred":false},{"Name":"forOf (with getAttribute)","Code":"let list = [];\r\n\r\nfor(const node of nodes) {\r\n\tif(node \u0026\u0026 node.hasAttribute \u0026\u0026 node.hasAttribute(\u0022class\u0022) \u0026\u0026 node.getAttribute(\u0022class\u0022)) {\r\n \tlist.push(node);\r\n }\r\n}\r\nconsole.log(list)","IsDeferred":false},{"Name":"forOf (without getAttribute)","Code":"let list = [];\r\n\r\nfor(const node of nodes) {\r\n\tif(node \u0026\u0026 node.hasAttribute \u0026\u0026 node.hasAttribute(\u0022class\u0022)) {\r\n \tlist.push(node);\r\n }\r\n}\r\nconsole.log(list)","IsDeferred":false}]}