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

Syntax

bapi.helper.isInteger(value)

Parameters

value

The value to test.

Example

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