Apply spread arguments transform.

This commit is contained in:
John-David Dalton
2017-01-06 15:42:44 -08:00
parent 7167d7e09f
commit f4a6e9ede9
5 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ function shortOut(func) {
} else {
count = 0;
}
return func.apply(undefined, arguments);
return func(...arguments);
};
}