Flatten Array in ECMAScript
Take a nested list and return a single list with all values except nil/null
exercism fetch ecmascript flatten-array
Take a nested list and return a single flattened list with all values except nil/null.
The challenge is to write a function that accepts an arbitrarily-deep nested list-like structure and returns a flattened structure without any nil/null values.
Go through the setup instructions for ECMAScript to install the necessary dependencies:
Install assignment dependencies:
$ npm install
Making the test suite pass
Execute the tests with:
$ npm test
In the test suites all tests but the first have been skipped.
Once you get a test passing, you can enable the next one by
Interview Question https://reference.wolfram.com/language/ref/Flatten.html
Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.