Problems with indexing array

Comments

3 comments

  • Rainer Grabowski

    Hi Remo,

    for me it works:

    But you can try: num = String(itemsArray[5]) or Number(itemsArray[5]);

    Btw: Using const is useless because Podio's calc field JavaScript is ES5, const was introduced with ES6. Means also: Functions/methods introduced with ES6 don't work in Podio.

    0
    Comment actions Permalink
  • Remo Widmer

    Thanks, num = String(itemsArray[5]) does overcome the problem. It is unclear to me what the issue is, but for now I am satisfied.

    Also thanks for pointing out the ES5 vs ES6 stuff. 

     

    Remo

    0
    Comment actions Permalink
  • Rainer Grabowski

    > It is unclear to me what the issue is,

    It's caused by the way how Podio handles it in the background, I don't know any details, but it can be annoying. 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk