Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

JE::Object::Boolean - JavaScript Boolean object class

Description

       This class implements JavaScript Boolean objects for JE. The difference between this and JE::Boolean is
       that that module implements primitive boolean values, while this module implements the objects.

Methods

       See JE::Types for descriptions of most of the methods. Only what is specific to JE::Object::Boolean is
       explained here.

       value
           Returns a Perl scalar, either 1 or the empty string (well, actually !1).

Name

       JE::Object::Boolean - JavaScript Boolean object class

See Also

       JE
       JE::Types
       JE::Object
       JE::Boolean

perl v5.36.0                                       2023-08-25                           JE::Object::Boolean(3pm)

Synopsis

         use JE;

         $j = new JE;

         $js_bool_obj = new JE::Object::Boolean $j, 1;

         $perl_bool = $js_bool_obj->value;

         "$js_bool_obj";  # true

See Also