Class StateNameFilter

Selects offers having a state that matches a regexp.

This filter only works with FILLZ.SOURCE.ABEBOOKS.v2, FILLZ.SOURCE.AMAZONUS.v2, FILLZ.SOURCE.AMAZONCA.v2, FILLZ.SOURCE.AMAZONDE.v2, FILLZ.SOURCE.AMAZONFR.v2, FILLZ.SOURCE.AMAZONUK.v2

Class Summary

Using the StateName filter:

var abe = FILLZ.SOURCE.ABEBOOKS.v2;
var filter = FILLZ.FILTERS.v1;
//will keep only offers where the state is CA or ON
var offers = abe.offers(filter.state.matches(/ca|on/i));

Methods

  • matches(regexp)

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