Closed dhritzkiv closed 3 years ago
Simplify threshold type check: the typeof this.options.intersection.threshold === 'number' check already covers the intent of the this.options.intersection check
typeof this.options.intersection.threshold === 'number'
this.options.intersection
If this.options.intersection is nullish it will throw a TypeError.
Right, of course! Sorry - I misread the line of code. I've been writing too much optional chaining code! 😅
Simplify threshold type check: the
typeof this.options.intersection.threshold === 'number'
check already covers the intent of thethis.options.intersection
check