Please use typeof normally. If you need to detect an array, You can use `Object.prototype.toString.call(variable) == "[object Array]"`.