React Typescript Array Methods In Python