Hacker News new | ask | show | jobs
by tyingq 1670 days ago
You can force a type check that it's a specific type of object or interface rather than an array. But, no, you can't do what you're asking for directly.