13 lines
306 B
Markdown
13 lines
306 B
Markdown
# poker.js — getPlayerIndex() (satır 44)
|
||
|
||
[← poker.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function getPlayerIndex(table, playerName) {
|
||
for (var i = 0; i < table.players.length; i++) {
|
||
if (table.players[i].name === playerName) return i;
|
||
}
|
||
return -1;
|
||
}
|
||
```
|