Answers for "pop first 2 elements ruby"

0

rails array pop first n elements

array = [1, 2, 3, 4, 5, 6]
array.drop(2)

# => [3, 4, 5, 6]
Posted by: Guest on March-19-2021

Browse Popular Code Answers by Language