DEV Community

Discussion on: Selecting multiple DOM elements with destructuring and map

Collapse
 
anduser96 profile image
Andrei Gatej

Great tip!

Something I always use when writing vanilla js:

const $ = document.querySelector.bind(document);

const elemById = $(“#an-id);