Snippets Collections
var element = document.querySelectorAll('.elementClass');
if (typeof(element) != 'undefined' && element != null) {
    //your code here
}
star

Fri Mar 05 2021 12:13:19 GMT+0000 (UTC)

#js #vanilla

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension