Delphi Array Functions In Typescript Vs Angular