Open repsweet080303 opened 1 year ago
To specify the type of an array like [1, 2, 3], you can use the syntax number[], this syntax works for any type.
[1, 2, 3]
number[]
or Array<number>, Array<string>
Array<number>
Array<string>
Arrays
To specify the type of an array like
[1, 2, 3]
, you can use the syntaxnumber[]
, this syntax works for any type.or
Array<number>
,Array<string>