> For the complete documentation index, see [llms.txt](https://javascriptuse.gitbook.io/advanced/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://javascriptuse.gitbook.io/advanced/convert-object-to-array-javascript-ok.md).

# convert object to array javascript (ok)

```
var result = {
    "key1": 1,
    "key2": 2,
    "key3": 3,
    "key6": 5,
    "key4": 4,
    "key5": 5
};
var arrs = Object.keys(result);
console.log(arrs);
// Kết quả:
[
    "key1",
    "key2",
    "key3",
    "key6",
    "key4",
    "key5"
]
```
