Tools to Capture and Convert the Web

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.

Try all our premium features for free with a 7 day free trial. Then from $5.99 a month, unless cancelled.
  • More Captures
  • More Features
  • More API's
  • Bigger Scrapes
  • Bigger Captures
  • Bigger Everything
Start Free Trial