We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES2019
es2019
Array.prototype.flat definition is supporting depth only up to 21. Over 21 return wrong type.
depth
const foo = [ [ ['string' ] ] ] const flatFoo = foo.flat(22) // string[][][] should be string[]
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
The text was updated successfully, but these errors were encountered:
Anyone who has arrays with such a depth needs to take a very good look at itself in the mirror.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
⚙ Compilation target
ES2019
⚙ Library
es2019
Missing / Incorrect Definition
Array.prototype.flat definition is supporting
depth
only up to 21. Over 21 return wrong type.Sample Code
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
The text was updated successfully, but these errors were encountered: