News for hackers. Stuff that matters.
Re:Algorithms in PHP: Deques by deergomoo on Tuesday September 13, 2022 @05:47PM (#32830565)
Probably because the Boolean operators in JS return the left or right side of the expression, rather than a Boolean.

It was an okay-ish way to get a default/fallback value before JS got a proper coalescing operator.

There are no comments on this comment yet.