mmalecki/node — comment on commit 04645c5e7405c74f37715e58221229c36978616f
File:  line 0
By mmalecki:

Nor am I, but I think that this is a cleanest solution in this case. Or I could use:

```javascript
exports.connect = function () {
if (typeof arguments[0] == 'object') {
options = arguments[0];
}
else {
if (typeof arguments[1] == 'object') {
options = arguments[1];
options.port = arguments[0];
}
else if (typeof arguments[2] == 'object') {
options = arguments[2];
options.port = arguments[0;
options.host = arguments[1];
}
}
cb = (typeof arguments[arguments.length - 1] == 'function') ? arguments[arguments.length - 1] : null;
}
```

Does it look better to you?