Javascript Finding Value In Array Python Example