mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
8 lines
193 B
GDScript
8 lines
193 B
GDScript
|
|
class_name ArrayTool
|
||
|
|
|
||
|
|
static func removeAll(array: Array, value) -> Array:
|
||
|
|
var result = []
|
||
|
|
for item in array:
|
||
|
|
if item != value:
|
||
|
|
result.append(item)
|
||
|
|
return result
|