Skip to content

Commit 4a492c7

Browse files
committed
update
1 parent 75c8d30 commit 4a492c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/azure-resource-manager/templates/template-functions-array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ The output from the preceding example with the default values is:
746746

747747
## tryGet
748748

749-
`tryGet(sourceArray, keyOrIndex)`
749+
`tryGet(itemToTest, keyOrIndex)`
750750

751751
`tryGet` helps you avoid deployment failures when trying to access a non-existent property or index in an object or array. If the specified key or index does not exist, `tryGet` returns null instead of throwing an error.
752752

@@ -756,7 +756,7 @@ In Bicep, use the [safe-dereference](../bicep/operator-safe-dereference.md#safe-
756756

757757
| Parameter | Required | Type | Description |
758758
|:--- |:--- |:--- |:--- |
759-
| sourceArray |Yes |array, object |An object or array to look into. |
759+
| itemToTest |Yes |array, object |An object or array to look into. |
760760
| keyOrIndex |Yes |string, int |A key or index to retrieve from the array or object. A property name for objects or index for arrays.|
761761

762762
### Return value

articles/azure-resource-manager/templates/template-functions-object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ The output from the preceding example with the default values is:
542542

543543
## tryGet
544544

545-
`tryGet(sourceArray, keyOrIndex)`
545+
`tryGet(itemToTest, keyOrIndex)`
546546

547547
`tryGet` helps you avoid deployment failures when trying to access a non-existent property or index in an object or array. If the specified key or index doesn't exist, `tryGet` returns null instead of throwing an error.
548548

@@ -552,7 +552,7 @@ In Bicep, use the [safe-dereference](../bicep/operator-safe-dereference.md#safe-
552552

553553
| Parameter | Required | Type | Description |
554554
|:--- |:--- |:--- |:--- |
555-
| sourceArray |Yes |array, object |An object or array to look into. |
555+
| itemToTest |Yes |array, object |An object or array to look into. |
556556
| keyOrIndex |Yes |string, int |A key or index to retrieve from the array or object. A property name for objects or index for arrays.|
557557

558558
### Return value

0 commit comments

Comments
 (0)