Alloy UI

aui-datatype  1.0.1

 
Filters

static Class DataType.String

DataType.String provides a set of utility to provides a simple function that evaluates a string to a primitive value (if possible). Supports true and false also.

Methods

evaluate

boolean | null | number | String | undefined evaluate ( data )
Evaluates a string to a primitive value (if possible). Supports true and false also. Unrecognized strings are returned without any modification.
Parameters:
data <*> Input data to be evaluated.
Returns: boolean | null | number | String | undefined
Parsed value