since we have _ in this module you can do this

ignores = _.compact(_.map(files, <logic>))