milewise/mongode — pull request #6 by rlidwka (2012-08-25 17:44:07+00:00)
Title: an array of replica servers incorrectly assumed to be an options object

An Array in javascript has object type, so if I want to connect to replica set and pass an array there, it'll be moved to `objects`. See diff.

```javascript
// i use code like that
mongode.connect('test', ['192.168.0.1', '192.168.0.2']);
```

```javascript
typeof(['192.168.0.1', '192.168.0.2']) === 'object' // true
```