i have trouble with js array.
I have patch name(string) look like ( "user.joey.friends.0.franc" ) and i need to "compress" to look like this:

```
console.log( parseArray( "user.joey.friends.0.franc" ) );
//Object {
            user: {
                joey: {
                    friends: {
                        0: {
                            franc: 1
                        }
                    }
                }
            }
        }

```

Any ideas, how to do that ?