1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 07:21:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Tools/ArrayTool.gd
T

8 lines
193 B
GDScript
Raw Normal View History

class_name ArrayTool
static func removeAll(array: Array, value) -> Array:
var result = []
for item in array:
if item != value:
result.append(item)
return result