Skip to content

Commit d884237

Browse files
Michael-M-JuddIvanGoncharov
authored andcommitted
fix: added FlowFixMe on Array.prototype.flatMap (#2131)
- Fix for flow-bin 0.96, which complains about flatMap not existing.
1 parent 383f0a2 commit d884237

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/polyfills/flatMap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ declare function flatMap<T, U>(
99
// $FlowFixMe
1010
const flatMap = Array.prototype.flatMap
1111
? function(list, fn) {
12+
// $FlowFixMe
1213
return Array.prototype.flatMap.call(list, fn);
1314
}
1415
: function(list, fn) {

0 commit comments

Comments
 (0)