JSFiddle - React, Tailwind, and code Playground by Pritesh Patel January 05, 2021 JavaScript const val = '' const test = !Number.isNaN(parseFloat(val)) console.log('test', test);