Replace text in object var

I have a object var , the length is about 300 or so

In console.log it returned like so

 /var/scraper/public/images/flags/noimg.png

I need it to be returned like this:

 images/flags/noimg.png

But when II try to use replace on this I get an error telling me replace is not an function. Any suggestion as how I can manipulate this text in the object ?

any help would be much appreciated

What does console.log(typeof var) report?

pretty strange I just did another test and now it is working perfectly … hmmm…

Well then nevermind

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.