You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Array.flat() has an optional 'depth' parameter (default of 1).
Array.flatMap() only supports the default depth of 1.
So if you have code:
myArray.flat(99)
The rule shouldn't trigger on that, but it currently does.
So basically if the .flat() call has an argument and that argument is greater than 1, then don't report it as an error as .flatMap() won't work in this situation.
The text was updated successfully, but these errors were encountered:
Array.flat() has an optional 'depth' parameter (default of 1).
Array.flatMap() only supports the default depth of 1.
So if you have code:
The rule shouldn't trigger on that, but it currently does.
So basically if the .flat() call has an argument and that argument is greater than 1, then don't report it as an error as .flatMap() won't work in this situation.
The text was updated successfully, but these errors were encountered: