Skip to content

Commit

Permalink
replacing (...args) => args[0] with arg => arg (reduxjs#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondaychen authored and gaearon committed Apr 15, 2016
1 parent 7b85962 commit f02e825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/

export default function compose(...funcs) {
if (!funcs.length) {
return (...args) => args[0]
if (funcs.length === 0) {
return arg => arg
} else {
const last = funcs[funcs.length - 1]
const rest = funcs.slice(0, -1)
Expand Down

0 comments on commit f02e825

Please sign in to comment.