Javascript Minimum Of Array Python Methods String