ListExpr
ListExpr describes a list creation expression.
Methods
Section titled “Methods”elements()
Section titled “elements()”elements():
Expr[]
Elements returns the list elements as expressions.
Returns
Section titled “Returns”Expr[]
isOptional()
Section titled “isOptional()”isOptional(
index):boolean
IsOptional indicates whether the given element index is optional.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”boolean
optionalIndices()
Section titled “optionalIndices()”optionalIndices():
number[]
OptionalIndices returns the list of optional indices in the list literal.
Returns
Section titled “Returns”number[]
size()
Section titled “size()”size():
number
Size returns the number of elements in the list.
Returns
Section titled “Returns”number