JavaScript
Select first element in array

by Benny Neugebauer

const [firstDiv] = document.getElementsByTagName('div');

const firstDiv = document.getElementsByTagName('div')[0];