Show:

A.DataType.Boolean provides a set of utility to parse falsey value to false and non-falsey to true.

Index

Methods

Methods

parse

(
  • data
)
Boolean

Parses any falsey value to false and non-falsey to true.

Parameters:

  • data

    falsey or non-falsey values (i.e., falsey values: null, false, undefined, NaN; non-falsey values: 1, true, 'abc').

Returns:

Boolean:

Parsed value