Typescript Array Functions Gamemaker