Unable to get all the keys of map using Object.keys(map) | Community
Skip to main content
April 12, 2016
Solved

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

  • April 12, 2016
  • 1 reply
  • 720 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParitMittal

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

 

1 reply

ParitMittal
ParitMittalAccepted solution
Level 10
April 13, 2016

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