Delphi Array Functions In Typescript Enum For Loop