Is there an official way to pass the head of a pipe function as a normal function argument? Like how you can modify functions with .call and .bind, I want to modify String.prototype.includes so that it looks like includes('a')('acd'). Basically, I want a function that makes it's first argument, say 'abc', the String instance in String.prototype.includes('a')
He'res my best attempt... that doesn't work, because, why would it
['abc'].some(String.prototype.includes('b'))
Basically I want a cool confusing version of this
x => x.includes('b')
Is there a version of call, bind or depipe method in Javascript that does what I need?
Related: What does "Function.call.bind(Function.bind)" mean?