Re:TypeScript 5.0
by throwaway09432 on Sunday March 19, 2023 @09:00AM
(#35218504)
I mean if I have a NonEmptyArray say xs, and I then xs.map(x=>2*x), will the result of this expression be a NonEmptyArray ?
[ Parent
| on HN ]
Re:TypeScript 5.0
by triyambakam on Tuesday March 21, 2023 @08:28PM
(#35254947)
No, unfortunately it will just be number[] as the return type.