jcubic / jcubic/cortex

Missing API to convert internal Array

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Array exposed via extrnal API look like this:

```
{
getter: [Object: null prototype] {},
setter: [Object: null prototype] {},
properties: [Object: null prototype] { '0': 1, '1': 2, '2': 3 },
proto: {
getter: [Object: null prototype] {},
setter: [Object: null prototype] {},
properties: [Object: null prototype] {},
proto: {
getter: [Object: null prototype] {},
setter: [Object: null prototype] {},
properties: [Object: null prototype] {},
proto: null
},
class: 'Array'
},
class: 'Array'
}
```

To get real array, you can use:

```javascript
Object.values(object.properties)
```

This should be done automatically via external API.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.