Created
August 19, 2019 17:26
-
-
Save dormd/677fc8def47ab9a345eb4c37ba4bf812 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flattenDeep([]) // => [] | |
flattenDeep([[1]]) // => [1] | |
flattenDeep([1,[[[2],22,[222]]],3, () => {}, { a: 4 }, [undefined, [null]], null, 'hi']) | |
// => [1, 2, 22, 222, 3, () => (), {a: 4}, undefined, null, null, 'hi'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment