hughsk/flat — pull request #5 by kapetan (2013-12-16 10:39:33+00:00)
Title: Unflatten into objects with integer keys

Added `object` option to unflatten. When set to true, numbered keys are unflatten into objects with integer keys (instead of always creating arrays).

```javascript
unflatten({
'hello.you.0': 'ipsum',
'hello.you.1': 'lorem',
'hello.other.world': 'foo'
}, { object: true })

// =>

hello: {
you: {
0: 'ipsum',
1: 'lorem',
},
other: { world: 'foo' }
}
```