Removal of the last element of an array

Is there a way to remove the last element from an array?

Kind of like the function “pop()” in javascript

2 Likes

yah the syntax is
yourarrayvariable.Take(yourarrayvariable.Count() - 1).ToArray()

this will remove the last element in the array variable

Cheers @LarsFeilberg

10 Likes

Cheers Palaniyappan!

It works flawlessly

1 Like

no worries
Cheers @LarsFeilberg

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.