replace lodash filter by array filter