3 ms·
document.querySelector(selector_with_no_matching_elements) and other similar select methods that 1. Will only yield a single element at most (never an array) 2.
by bobbylarrybobby 6y ago
document.querySelector(selector_with_no_matching_elements) and other similar select methods that 1. Will only yield a single element at most (never an array) 2. Might come up empty.