Apply destructuring transform.

This commit is contained in:
John-David Dalton
2017-01-06 15:52:32 -08:00
parent bf54267f0b
commit 41ad5e901f
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ function baseWrapperValue(value, actions) {
if (result instanceof LazyWrapper) {
result = result.value();
}
return arrayReduce(actions, (result, action) => action.func.apply(action.thisArg, arrayPush([result], action.args)), result);
return arrayReduce(actions, (result, { func, thisArg, args }) => func.apply(thisArg, arrayPush([result], args)), result);
}
export default baseWrapperValue;