console.log ( typeof event.target.value) code example Example: react if event.target is input if (event.target instanceof HTMLInputElement)