Nó JS Verifique o tipo de variável
if (typeof i != "number") {
console.log('This is not number');
}
Plain Piranha
if (typeof i != "number") {
console.log('This is not number');
}