The isString() method tests if the provided value is an String and returns a boolean value.

Syntax

bapi.helper.isString(value)

Parameters

value

The value to test.

Example

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