Remove parentheses around typeof
Syntax follows MDN as typeof is an operator: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof