JE::Undefined(3pm)

πŸ“¦
version 0.066 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ JE::Undefined ✨

okay bestie, welcome to the little manpage for JE::Undefined β€” that's the User Contributed Perl Documentation version, the one you're reading rn on JE::Undefined(3pm). it's a whole class for the JavaScript undefined value and honestly? it's giving minimalism πŸ’…


πŸ¦‹ NAME πŸ¦‹

JE::Undefined β€” the JavaScript undefined value, bestie. that's it. that's the whole vibe.


🌸 SYNOPSIS 🌸

here's how you actually touch the thing, no cap:

use JE;

$j = new JE;

$js_undefined = $j->undef;

$js_undefined->value; # undef

so you use JE, you make a new JE, you grab $j->undef, and then $js_undefined->value hands you back a good old Perl undef. iconic. πŸ”₯


πŸŽ€ DESCRIPTION πŸŽ€

okay so this class implements the JavaScript undefined type. and like… there really isn't much to it. that's not me being shady, that's literally what the docs say 😭 it's a whole class doing the absolute least and we respect it for that.

here's the tea though, the two facts you actually need:

  • Undefined stringifies to 'undefined'. so when you ask it to be a string, it says 'undefined'. slay.
  • Undefined is false as a boolean. so in a truthy/falsy vibe check, it does not pass. it's falsy. periodt.

that's the entire personality. tiny, but valid. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, they're the friend group:

  • JE::Types
  • JE::Null
  • JE

and that's a wrap, my love πŸ’– this page came from perl v5.36.0, dated 2023-08-25, and yes the title up top really does say JE::Undefined(3pm). go forth and be falsy ✨🧚

πŸ“¦ where this page comes from