Query Selector When testing things in browser's dev tools, instead of typing the lengthy ` document.querySelectorAll ` you can use ` $$ `. $$("div") instead of document.querySelectorAll("div") Determine the Weight of Your Web Page $$("*"), this will return total number elements present in the document. Get Unique Values of an Array Set is used to return the unique value of an array. var arr = [1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 7, 7]; const newArr = new Set (arr); Related Articles Sorting an array in Javascript What is Redux? Why we need Redux? When it is required? React - Redux with Example What's new in ECMAScript 2019 Top features in ES 6 / Javascript 2015 HTML5 Web Storage
- Get link
- X
- Other Apps