by negativegate · 7y ago · 0 comments
It almost seems like some sort of co/contravariance issue?
A function that reads from an Array<string | number> should be able to accept either an Array<string> or an Array<number> (or Array<string | number>), but a function that mutates it should only be able to accept Array<string | number>?
No comments yet.