SplitScript reference / [T] / length
[T].length
Method
[T].length() -> u32
Returns the number of array elements.
The result is the WebAssembly GC array length.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Count array elements
let fieldCount = ["health", "mana"].length()