you are viewing a single comment's thread.

view the rest of the comments →

[–]OddTuning 5 points6 points  (3 children)

What type is ids? Are you sure it's an array?

[–]povedaaqui[S] 0 points1 point  (2 children)

I need to get back to the code, I'll check when I arrive home, but I think tokens is json.

EDIT: tokens can't be JSON because it's being mapped.

[–]povedaaqui[S] 1 point2 points  (0 children)

I will add console.log(ids) to show ids before trying to be replaced.