a-synchronous/rubico

rubico/x/callProp

richytong opened this issue · 1 comments

callProp(property string, ...args)(object) -> object[property](...args)

Calls a property on an object with arguments.

console.log(
  callProp('now')(Date),
) // 1610833137457

console.log(
  callProp('toString', 'utf8')(Buffer.from('hey')),
) // hey

resolved by 4f57600