Test
Test
Example
Test
Example
Test
Test
Test
Test
Test
Example
Test
Test
Test
Test
Example
Example
Example
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
{"ScriptPreparationCode":null,"TestCases":[{"Name":"querySelectorAll on attribute","Code":"document.querySelectorAll(\u0022a[href^=\u0027https://test.com\u0027]\u0022);","IsDeferred":false},{"Name":"functional filtering","Code":"[...document.querySelectorAll(\u0027a\u0027)].filter( link =\u003E link.getAttribute(\u0027href\u0027)?.startsWith(\u0027https://test.com\u0027) )","IsDeferred":false},{"Name":"for of loop","Code":"let links = document.querySelectorAll(\u0027a\u0027);\r\nlet test_links = [];\r\nfor( link of links ) {\r\n if(link.getAttribute(\u0027href\u0027)?.startsWith(\u0027https://test.com\u0027)) {test_links.push(link)};\r\n}","IsDeferred":false},{"Name":"traditional for loop","Code":"let links = document.querySelectorAll(\u0027a\u0027);\r\nlet test_links = [];\r\nfor( let i = links.length-1; i !== 0; i-- ) {\r\n let link = links[i];\r\n if(link.getAttribute(\u0027href\u0027)?.startsWith(\u0027https://test.com\u0027)) {test_links.push(link)};\r\n} ","IsDeferred":false}]}