Skip to content

Commit f02e825

Browse files
mondaychengaearon
authored andcommitted
replacing (...args) => args[0] with arg => arg (reduxjs#1622)
1 parent 7b85962 commit f02e825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compose.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
*/
1111

1212
export default function compose(...funcs) {
13-
if (!funcs.length) {
14-
return (...args) => args[0]
13+
if (funcs.length === 0) {
14+
return arg => arg
1515
} else {
1616
const last = funcs[funcs.length - 1]
1717
const rest = funcs.slice(0, -1)

0 commit comments

Comments
 (0)