adamhaile/S-array

Expose length property in SArray

dyu opened this issue · 1 comments

dyu commented
var array = SArray([1])
console.log(array.length) <-- undefined

I recommend using array().length. length changes, which means it shouldn't be a bare property but a signal. So the options are array.length() or array().length. Given that the latter is already available, and the former doesn't seem to add anything, I didn't add array.length().