Home
Public posts
API
Home
Public posts
API
Sign in with GitHub
1
// Выпрямить массив: \[1, \[2, \[3\]\], \[4, 5\]\] → \[1, 2, 3, 4, 5\].
2
3
const flatten = (arr) => {
4
5
}
Auto run
Auto clear
Run
Click Run to execute JavaScript.
Code runs in an isolated environment.