Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
Array is expanded after applying Object.entries in javascript

I have the following code in javascript

console.log(dates)
domain = Object.entries(dates)
console.log(domain)

where:

dates = {
    "0": "2003-02-01T05:00:00.000Z",
    "1": "2003-03-01T05:00:00.000Z",
    "2": "2003-04-01T05:00:00.000Z"
}

Strangely,

domain = [
    ["0", "2003-02-01T05:00:00.000Z"],
    ["1", "2003-03-01T05:00:00.000Z"],
    ["2","2003-04-01T05:00:00.000Z"],
    "0",
    "1",
    "2"
]

const dates = {
    "0": "2003-02-01T05:00:00.000Z",
    "1": "2003-03-01T05:00:00.000Z",
    "2": "2003-04-01T05:00:00.000Z"
};
    
const domain = Object.entries(dates);
console.log(domain);
.as-console-wrapper { max-height: 100% !important; top: 0; }

I would like to know what is going on. I get the same results (a list of numbers of the same length than the initial array appended to the end) when I use keys and values too.

Help is much appreciated.

EDIT:

There is one issue marked at console.log(domain). It reads:

Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform

A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
Note that for performance reasons, only the first access to one of the properties is shown.

AFFECTED RESOURCES
1 source
popper.min.js:1

Do you think this is the source of the issue? If so what can I do?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!