DEV Community

Discussion on: JS Polyfills asked in Interviews

 
marzelin profile image
Marc Ziel

I can understand when someone skips some edge cases when writing an example because supporting them would make code really long or much harder to understand. But this isn't the case here. You could write () => [] and argue all day that this is a partial polyfill of flat because it works for some inputs. Or you could fix your buggy code.