You can set the length property to shorten an array.
If you have to execute a function only if condition is true, you can use short-circuit.
console.table() lists all elements in each row. You can use the optional “columns” parameter to select a subset of columns to display:
You can find more HTML/CSS/JS Tips here: github.com/MarkoDenic/awesome-html-css-js-tips
If you liked this article, be sure to ❤️ it.