Const
Make an object callable. Given an object and a function the returned object will be a function with all the objects properties.
const car = callable({ wheels: 2}, self => () => { return 'driving'})car.wheels // => 2car() // => 'driving' Copy
const car = callable({ wheels: 2}, self => () => { return 'driving'})car.wheels // => 2car() // => 'driving'
Make an object callable. Given an object and a function the returned object will be a function with all the objects properties.