I am currently developing an application using react-native
and it's common knowledge that we can utilize JavaScript
code in this particular project as well as any other react
projects.
However, whenever I attempt to use the following code snippet, the transpiler throws an Error when running on the simulator:
const mixer = (...arg) => arg.flat(9);
The error message reads: flat is not a function
Can anyone explain why this works perfectly fine in a browser environment but fails in react-native
? Thank you!