Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnet committed May 14, 2019
2 parents 40f64d6 + 48a37db commit 4bb0bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list/flatMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const isFlatMapable = mapable => mapable && typeof mapable.flatMap === 'function
const isFlFlatMapable = mapable => mapable && typeof mapable['fantasy-land/chain'] === 'function'

const flatMap = func => mapable =>
isFlatMapable(mapable) ? mapable.flatMap(func)
isFlatMapable(mapable) && !Array.isArray(mapable) ? mapable.flatMap(func)
: isFlFlatMapable(mapable) ? mapable['fantasy-land/chain'](func)
: reduce(flatMapReducer(func))([])(mapable)

Expand Down

0 comments on commit 4bb0bb2

Please sign in to comment.