Answers for "how remove the last item of an array in ruby"

1

ruby pop array

a = [1, 2, 3, 4]
a.pop()
# => 4
Posted by: Guest on June-17-2020

Code answers related to "how remove the last item of an array in ruby"

Browse Popular Code Answers by Language