diff --git a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md index d935716ff..068d1bb19 100644 --- a/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md +++ b/versioned_docs/version-latest/04-standard-library/02-std/api-reference.md @@ -29,6 +29,7 @@ Immutable Array. | indexOf | Returns the index of the first occurrence of searchElement found. | | join | Returns a new string containing the concatenated values in this array, separated by commas or a specified separator string. | | lastIndexOf | Returns the index of the last occurrence of searchElement found. | +| tryAt | Get the value at the given index, returning nil if the index is out of bounds. | --- @@ -137,6 +138,22 @@ to search for. --- +##### `tryAt` + +```wing +tryAt(index: num): +``` + +Get the value at the given index, returning nil if the index is out of bounds. + +###### `index`Required + +- *Type:* num + +index of the value to get. + +--- + #### Properties