Get a Free Trial
For advanced users only

Manipulating Arrays

GrabzIt's Web Scraper provides several utility methods to make it easy to manipulate arrays. The easiest of which is the contains method demonstrated below. This method will return true if the array being searched contains the specified value.

var items = [1,2,3,4];

if (Utility.Array.contains(1, items))
{
    //this code will be executed because the items array contains a 1.
}

The above method will execute the code contained in the if statement if a 1 is contained in the items array.