JS Quiz, flatten array

by dhchow

JavaScript

/* 
Write a method that flattens an array of any size and of any type, including arrays. For example:

Input: ["a", "b", "c", ["d", "e"]]

Returns: ["a", "b", "c", "d", "e"]

*/