Expand my Community achievements bar.

SOLVED

Unable to get all the keys of map using Object.keys(map)

Avatar

Former Community Member

I have a map(dicts[locale]). I need to fetch all the keys of that map.

 

I m using below code in my javascript file..

var allKeys=Object.keys(dicts[locale]);

 console.log("all keys:"+allKeys);

But it is displaying only 23 elements Array[23].

Why i m not able to get all the keys.Why its giving only 23 elements.

Please suggest how can i get all the keys.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi , 

Thanks for reaching out to Adobe DTM community. This forum is dedicated for queries regarding Adobe DTM. Please reach out to forums like stackoverflow.com for any of the generic queries related to Javascript Implementation.

Thanks & Regards

Parit Mittal

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi , 

Thanks for reaching out to Adobe DTM community. This forum is dedicated for queries regarding Adobe DTM. Please reach out to forums like stackoverflow.com for any of the generic queries related to Javascript Implementation.

Thanks & Regards

Parit Mittal