Home Manual Reference Source

src/fn/methodcaller.js

const methodcaller = (name, ...args) => (obj) => obj[name](...args);
export default methodcaller;