S-array icon indicating copy to clipboard operation
S-array copied to clipboard

Expose length property in SArray

Open dyu opened this issue 8 years ago • 1 comments

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

dyu avatar Dec 26 '17 18:12 dyu

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().

adamhaile avatar Dec 26 '17 19:12 adamhaile