JavaScript is in array

Let’s say I have this:

var blockedTile = new Array("118", "67", "190", "43", "135", "520");

There’s more array elements but those are just few for readability purposes. Anyways, I could do a “for” loop but it would do 500 loops everytime you click on the map… is there any other way to see if a certain string is in an array?

35 thoughts on “JavaScript is in array”

  1. Everything published was very logical. However, what about this?
    suppose you typed a catchier title? I ain’t saying your content
    is not good, however what if you added a title that grabbed
    people’s attention? I mean JavaScript is in array – JavaScript Help
    is a little vanilla. You could peek at Yahoo’s front page and see how they create news titles to grab viewers
    to open the links. You might try adding a video or a pic or two to get readers interested about everything’ve got
    to say. In my opinion, it might make your posts a little livelier. http://herreramedical.org/dapoxetine

    Reply

Leave a Comment