TS only allow property access for known properties, even when it's optional. In other words, even though `null?.a` is valid, TS is saying `null` doesn't have a known property `a`.
TS only allow property access for known properties, even when it's optional. In other words, even though `null?.a` is valid, TS is saying `null` doesn't have a known property `a`.
Mixing these concepts used to lead to bad code, like using the a semantically wrong element for its styles.
I think decoupling is the right move.
Mixing these concepts used to lead to bad code, like using the a semantically wrong element for its styles.
I think decoupling is the right move.
I'd love for it to take any sequence, and not only arrays. For example, Object.entries() and Node.children are iterators. Sampling those look useful, but I have no idea how that could be implemented.
I'd love for it to take any sequence, and not only arrays. For example, Object.entries() and Node.children are iterators. Sampling those look useful, but I have no idea how that could be implemented.
Thanks for the pointer. :)
Thanks for the pointer. :)