conjuror
Version:
A magical CSV data parsing and outputing wizard or witch
19 lines (15 loc) • 374 B
JavaScript
var _ = require('underscore')
FilterTrim = function(trim, parts) {
if (trim !== undefined && trim !== '') {
var part = parts[3].trim()
if (_.indexOf(trim, part) > -1) {
//console.log('client: ' + part + ' matches: ' + args.options.trim);
return true
} else {
return false
}
} else {
return true
}
}
module.exports = FilterTrim