Push Values Into Empty Array Typescript Vs Python