UNPKG

docparse-dumpinvoices

Version:

takes a list of couchdb invoice ids and exports the data contained within those invoices to an Excel spreadsheet

10 lines (9 loc) 235 B
var pattern = /sales tax/i module.exports = function (costs) { var filtered = costs.filter(function (cost) { var description = cost.description var match = pattern.test(description) return !match }) return filtered }