Delphi Array Functions In Typescript Vs Nodejs