let links = document.querySelectorAll('.link'); let arr1 = [...links]; // iterable argument let arr2 = Array.from(links); let arr3 = [].slice.call(links); // [].slice === Array.prototype.slice; let arr4 = Array.prototype.slice(links);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter