79621381

Date: 2025-05-14 11:38:28
Score: 2.5
Natty:
Report link

TypeScript can't narrow a generic boolean like M at runtime, so it doesn't know if value is an array or not. Using function overloads or a type guard is usually the way to handle this.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Karen Brewer