14 lines
358 B
Markdown
14 lines
358 B
Markdown
# Test (2).js — findTrapIndex() (satır 676)
|
||
|
||
[← Test (2).js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function findTrapIndex(s, dim, x, y, z) {
|
||
for (var i = 0; i < s.traps.length; i++) {
|
||
var t = s.traps[i];
|
||
if (t.dim === dim && t.x === x && t.y === y && t.z === z) return i;
|
||
}
|
||
return -1;
|
||
}
|
||
```
|