Typescript Get Max Value In Array Python