(xs, x)
| 2256 | } |
| 2257 | ; |
| 2258 | function indexOf (xs, x) { |
| 2259 | if (xs.indexOf) return xs.indexOf(x); |
| 2260 | for (var i = 0; i < xs.length; i++) { |
| 2261 | if (x === xs[i]) return i; |
| 2262 | } |
| 2263 | return -1; |
| 2264 | } |
| 2265 | |
| 2266 | // By default EventEmitters will print a warning if more than |
| 2267 | // 10 listeners are added to it. This is a useful default which |