Skip to content

Commit ebee175

Browse files
committed
fix(operator): set default value for result parameter in operatorCalc function
1 parent 0a0b289 commit ebee175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function setVectorValue(vec, index, value) {
114114
}
115115
}
116116

117-
export function operatorCalc(alg, result) {
117+
export function operatorCalc(alg, result = undefined) {
118118
if (typeof alg !== 'function') {
119119
throw new Error('no function assigned');
120120
}

0 commit comments

Comments
 (0)