S-array
S-array copied to clipboard
Expose length property in SArray
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().