dy / spect

Observable selectors in DOM
https://dy.github.io/spect
MIT License
76 stars 8 forks source link

v: access multiarg values as [0], [1] etc. #231

Closed dy closed 4 years ago

dy commented 4 years ago
let c = v(0, 1, 2)
c[0] === 0
c[1] === 1
c[2] === 2

That's better than ambiguous v() === [1,2,3], but implies fn to be only setter. Also can possibly turn it into proxy, or require multiargs to be set from the beginning, which is no good.

dy commented 4 years ago

Done