Wednesday, 14 August 2013

How to apply substring to every letter in array?

How to apply substring to every letter in array?

I'm making an array of textstrings like this:
phone = $(data).find('.tel a')
I would like to apply a substring(8) to every item in the array called
phone. Is a for-loop the best way to do it?

No comments:

Post a Comment