Function Hoisting In JavaScript

When writing functions in Javascript it can be a little confusing. Hopefully by walking through a few examples we can see the nature of hoisting in Javascript to better understand it's...

Flatten An Array Of Arrays

There can be times when working with arrays that you need to be able to turn the array into one dimension. For example, you may have a situation whereby you have the following array: [ [ 1, 2 ], [...