Typescript New Empty Array Javascript Function Definition In C