Skip to content

Commit 4c54924

Browse files
authored
Merge pull request #546 from basics/feature/fix-missing-arguments
Customizations for typescript
2 parents 0a0b289 + ebee175 commit 4c54924

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)