Re:Tricks I wish I knew when I learned TypeScript
by jwalton on Tuesday October 12, 2021 @10:37AM
(#28840223)
:) Fair enough:
This checks the shape of the object, and returns true if it's a `Human`. This will work for array or objects or classes or anything.
[ Parent
| on HN ]
There are no comments on this comment yet.