Array of objects - removing the duplicate objects function #4404
Answered
by
Agazoth
HariRajan2014
asked this question in
Q&A
-
Hi , If you look here , there is a duplicate object id (17ea184b-e6e6-4fec-a0d7-878ce5d85d49), Is there anyway we can remove the duplicate objects from this array in bicep please. thanks.
|
Beta Was this translation helpful? Give feedback.
Answered by
Agazoth
Sep 13, 2021
Replies: 2 comments 3 replies
-
Hi Hari, Union merges 2 arrays and only includes duplicate values once. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
alex-frankel
-
It does work: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Hari,
Maybe this might work
union(sginputs, sginputs)
Union merges 2 arrays and only includes duplicate values once.