Determine if a value is truthy

Synopsis

Declared in <mrdocs/Support/JavaScript.hpp>

bool
isTruthy() const noexcept;

Description

A value is truthy if it is a boolean and is true, a number and not zero, or an non‐empty string, array or object.

Return Value

true if the value is truthy, false otherwise

Created with MrDocs