Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

sushmap63046565
Level 2
Level 2

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
ParitMittal
Correct answer by
Level 10
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
ParitMittal
Correct answer by
Level 10
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