Delphi Array Functions In Typescript Vs Jquery