Write a polyfill for Array.flat(depth). | Polyfills | javascript Interview Questions | NextRound.in