How do I used a function I defined somewhere as a callback function. I am trying to pass a named function to lodash:
function boo(value, key) {
// do something
}
_.forOwn(object, boo(value, key));
This doesn't work, I get value is not defined
. What is the right way to do it?