bind
in javascript lets you bind a function to some value
and in the returned function has this
equal to the value
.
if I have a function, is there a way to check that this
inside this function is already bound to a value ?
and to what value ?
--- adding example of what i want
function foo() { /*...*/ }
const bar = foo.bind(val); // val is any value
if am given only bar
can i somehow reach to val