You can use the built-in generic Array interface to also declare an array

Array<number> myArray 

This is the same as

number[] myArray 

Handling 2D Arrays

range.values = <any> 10; 

When you want to set a single value to a property that is a 2D array you need to include the <any> statement

Everything is zero based


© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext