In this challenge, your task is to create a program which takes in a nested array and returns a single-dimensional flattened array. For Example
[10,20,[30,],50] should output
The input will be a nested array (eg.
[10,20,[[]]]). It will contain only Integers (both negative and positive), Strings and Arrays. You can take the input as function argument, STDIN or whatever suits your language. You can assume that the input array won't have an empty array.
The output will be a flatted single-dimensional array with the same elements of same type as in the nested array and in the SAME order.
[10,20,30] -> [10,20,30] [] ->  [["Hi"],[]] -> ["Hi",10] [[,["Hi"],"Hi",20]] -> [20,"Hi","Hi",20] [[[""],""]] -> ["",""]
Feel free to ask for any clarification by using comments. This is code-golf, so the shortest code in bytes wins!
Note: If your language contains a built-in for this, then you must NOT use it.
Please also include a link to a website where your code can be executed.