We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d749a4 commit c0b9643Copy full SHA for c0b9643
src/operator.js
@@ -26,7 +26,7 @@ export function operatorCalc(alg, result) {
26
resultCacheIndex = -1;
27
const x = alg();
28
29
- if (!result && !inVector) {
+ if (!result && typeof inVector === 'undefined') {
30
return x;
31
}
32
inProgress = Y;
@@ -59,7 +59,7 @@ export function cachedValueOf(Vector) {
59
const org = Vector.prototype[name];
60
Vector.prototype[name] = function () {
61
if (inProgress === X) {
62
- if (!inVector) {
+ if (typeof inVector === 'undefined') {
63
inVector = this;
64
65
return this.x;
0 commit comments