init commit flattenarray,js

+//write a function that take a multidimensional array
+//and returns a flattened version
+//[1,[2,3],[4,[5,6]]] -> [1,2,3,4,5,6]