Uncaught TypeError: children.forEach is not a function
What is the reduce() method?
Manipulate Arrays Efficiently
Arrays are list-like objects whose prototype has methods to perform …
let sports = [ "football" , "basketball" , "swimming", "cricket"]
Whenever we initialize any variable as an array, then that array variable holds many…
How to check
if the array "games" doesn't exist or it's empty
if (!(Array.isArray(games)) || !(games.length))
Of the number of Array helper functions, the most confusing and rarely used is the Array.reduce() function.
Unlike the other Array helper methods suc…
Last week, I got to experience my first technical interview... ever! To be fair, there were some aspects of it that probably aren't typical of actual …
After reading this article, you should know:
What an array is,
Various types of arrays
Adding elements to an array
Removing from an array,
and still …
I had a really interesting bug recently that at first glance, completely stumped me.
I saw I had an array that was empty. But the length was…