Class CountryNameFilter

Selects offers having a country name that matches a regexp.

This filter only works with FILLZ.SOURCE.ABEBOOKS.v2

Class Summary

Using the CountryName filter:

var abe = FILLZ.SOURCE.ABEBOOKS.v2;
var filter = FILLZ.FILTERS.v1;
//will keep only offers where the country name looks like 'canada'
var offers = abe.offers(filter.country.matches(/canada/i))

Methods

  • matches(regexp)

    Returns true if Offer country matches regexp (which must be a RegExp)