Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap(). Parent comment
filter<U extends T>(pred: (a: T) => a is U): U[];
Additionally, getting TS better at inferring type guards is an open issue (literally): https://github.com/microsoft/TypeScript/issues/38390
There are no comments on this comment yet.
filter<U extends T>(pred: (a: T) => a is U): U[];
Additionally, getting TS better at inferring type guards is an open issue (literally): https://github.com/microsoft/TypeScript/issues/38390