React Typescript Array Methods Python Definition