For example I have an Array `var array = [1001, 1002, 1003]`

And I want to convert this array to an Object like

```
var obj = {
  a: 1001,
  b: 1002,
  c: 1003
}

```

I think the easiest way is to do like

```
obj.a = array[0]
obj.b = array[1]
obj.c = array[2]

```

However is there have any good ways to do this job and without using `for` cycle?(because i think if `array.length < 5`, use `obj.x = array[y]` will be more efficient?)

And I aslo want to know how to change the `obj` to a new empty array like?

```
// first get this obj
var obj = {
  a: 1001,
  b: 1002,
  c: 1003
}
// and then create this new array
var newArray = []
for(let i in obj) {
  newArray.push(obj[i])
}
console.log(newArray) // [1001, 1002, 1003]

```

Does `es6` have a good ways to solve this convert from each other ?