Skip to content
Advertisement

Javascript/jQuery to get subarray value with random array key

I have these below JSON data:

JavaScript

Assume above array variable is var data;

For this subarray jQuery331045811028719032642 is auto generate.

My question, how to get seconds array value using jQuery?

I tried this:

JavaScript

but it returns undefined.

Advertisement

Answer

You can get the seconds using Object.values

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement