Instance Propertyjavascriptkit 0.23.0JavaScriptKit
length
The number of elements in that array including empty hole. Note that length
respects JavaScript’s Array.prototype.length
var length: Int { get }
e.g.
const array = [1, , 3];
let array: JSArray = ...
array.length // 3
array.count // 2