diff --git a/src/operator.js b/src/operator.js index cc76e329..44372da9 100644 --- a/src/operator.js +++ b/src/operator.js @@ -114,7 +114,7 @@ function setVectorValue(vec, index, value) { } } -export function operatorCalc(alg, result) { +export function operatorCalc(alg, result = undefined) { if (typeof alg !== 'function') { throw new Error('no function assigned'); }