mrdocs::js::Value::isTruthy

Determine if a value is truthy

Synopsis

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