0 votes
var array = ["a", "b", "c", "d"]

How can I remove all items after "b".

asked Jan 28, 2019 in Engine by hashak (44 points)

1 Answer

0 votes
Best answer
var array = ["a", "b", "c", "d"]
array.resize(2)
print(array)
answered Jan 28, 2019 by volzhs (9,464 points)
selected Jan 28, 2019 by hashak
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.