Show:

A.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.

Index

Methods

Methods

evaluate

(
  • data
)
Boolean | null | number | String | undefined

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