Consider this example:
With ES6:
const foos = samples.filter(x => exclude(x, "foos"));
another option would be to use bind(), but I find it difficult to read:
bind()
const foos = samples.filter(exclude.bind(null, "foos"))