Skip to content

Commit

Permalink
fix: added FlowFixMe on Array.prototype.flatMap (#2131)
Browse files Browse the repository at this point in the history
- Fix for flow-bin 0.96, which complains about flatMap not existing.
  • Loading branch information
Michael-M-Judd authored and IvanGoncharov committed Aug 26, 2019
1 parent 383f0a2 commit d884237
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/polyfills/flatMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ declare function flatMap<T, U>(
// $FlowFixMe
const flatMap = Array.prototype.flatMap
? function(list, fn) {
// $FlowFixMe
return Array.prototype.flatMap.call(list, fn);
}
: function(list, fn) {
Expand Down

0 comments on commit d884237

Please sign in to comment.