rubico/x/callProp
richytong opened this issue · 1 comments
richytong commented
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