13
Announcing TypeScript 5.6 Beta (devblogs.microsoft.com)
top 4 comments
sorted by: hot top controversial new old
[-] fubarx@lemmy.ml 1 points 3 months ago

Did they get 'truthy' from The Colbert Report?

[-] towerful@programming.dev 6 points 3 months ago

Truthy/falsey refers to how types are converted to booleans.
So an empty string is falsey. It's not false, but when compared as a Boolean it converts to false.
A 0 is falsey, any other number is truthy.

[-] Vincent@feddit.nl 3 points 3 months ago* (last edited 3 months ago)

One pet peeve of mine is testing libraries having toBeTruthy/toBeFalsy matchers, but not toBeTrue and toBeFalse. I get that the latter are no shorter than toBe(true), but if the former are listed in the docs, then people who don't know the terminology will use those - I've seen (past) coworkers do that.

[-] madeindjs@programming.dev 1 points 3 months ago

Finally we have the Iterator Helper Methods!

this post was submitted on 26 Jul 2024
13 points (93.3% liked)

TypeScript

709 readers
1 users here now

founded 1 year ago
MODERATORS