The isNumeric() method tests if the provided value is a number and returns a boolean value.

Syntax

bapi.helper.isNumeric(value)

Parameters

value

The value to test.

Example

bapi.helper.isNumeric("Test Value.");//returns false
bapi.helper.isNumeric("false");//returns false
bapi.helper.isNumeric(125.4);//returns true
bapi.helper.isNumeric(125);//returns true